Canvas not responding to colorScheme Hook on dark/light transition #1269
Replies: 3 comments 4 replies
-
In addition if a Skia component has a Skia Value as one of its properties, any change to this value will cause the Skia View to rerender as well. |
Beta Was this translation helpful? Give feedback.
-
Nothing seems to change the image from 'light' to 'dark'. Apart from other rerender actions such as scrolling my animated gesture handler. I even tried conditionally rendering two separate Skia canvases. The change still doesn't occur until another animated event changes something else. |
Beta Was this translation helpful? Give feedback.
-
@psquizzle ContextBridge is broken in the latest release, we have a PR open
for it (#947), we will ship it soon. In the meantime we can recommend to
rewrite your code without the use of context bridge or use your own
implementation as seen in #947 or use something like
https://www.npmjs.com/package/its-fine (which we might end-up using
ourselves). Stay tuned.
…On Thu, Jan 12, 2023 at 6:10 PM psquizzle ***@***.***> wrote:
Nothing seems to change the image from 'light' to 'dark'. Apart from other
rerender actions such as scrolling my animated gesture handler. I even
tried conditionally rendering two separate Skia canvases. The change still
doesn't occur until another animated event changes something else.
—
Reply to this email directly, view it on GitHub
<#1269 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKXVU3PRRAYBAQYAC4V2DWSA3GRANCNFSM6AAAAAATVWT2QE>
.
You are receiving this because you are subscribed to this thread.Message
ID: <Shopify/react-native-skia/repo-discussions/1269/comments/4669895@
github.com>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to get the canvas to rerender on a transition between light and dark mode and can't get anything to work?
I have tried:
Beta Was this translation helpful? Give feedback.
All reactions