Updating shared values through Gestures with Reanimated 3 #1748
-
Hi there, first of all thanks for all the fantastic work on skia, it's truly remarkable! I am using the latest releases of RN Skia and Reanimated, and looking at the documentation here https://shopify.github.io/react-native-skia/docs/animations/reanimated it seems that with Reanimated 3 and higher I should be able to use shared values directly in the Canvas to keep everything on the UI thread. If I change that example to store the 3 circles in an array of basic Circle types (x, y, r, color) and map through them: Am I forgetting something obvious to let the Canvas know that the sharedValue has changed? Some additional info:
Thanks and best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
This example may help you: https://gist.github.com/wcandillon/4ade39497f96a4e2745b57b0cb071d8c |
Beta Was this translation helpful? Give feedback.
This example may help you: https://gist.github.com/wcandillon/4ade39497f96a4e2745b57b0cb071d8c
https://github.com/Shopify/react-native-skia/blob/main/example/src/Examples/Stickers/Stickers.tsx