What's the replacement for "continuous" Canvas mode? #3241
Unanswered
neilwithdata
asked this question in
Q&A
Replies: 1 comment
-
Reanimated is used for animation: https://shopify.github.io/react-native-skia/docs/animations/animations/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It seems like in previous versions of
react-native-skia
, it was possible to set the Canvas mode to "continuous" and in that way, have the canvas redrawn on every frame. You could then also, using theDrawing
component, and thedrawing
prop, imperatively draw what's going to go into every frame.This is used in the "Typography Metaball" tutorial which is linked to today on the tutorials page: https://shopify.github.io/react-native-skia/docs/tutorials
See: https://github.com/daehyeonmun2021/react-native-animation-lab/blob/main/src/screens/typography-metaball/typography-metaball.screen.tsx
However, this is all gone now in the latest version. How can you achieve the same effect now? I'm trying to get full imperative drawing control per-frame (not simply animate one or two animatable props).
Beta Was this translation helpful? Give feedback.
All reactions