Skip to content

Render an array of <Circle> based on an useValue<Array<Vector>> #963

Answered by wcandillon
xcoderreal asked this question in Q&A
Discussion options

You must be logged in to vote

Hello there,

if the number of drawing commands is animated (e.g. changing the React tree/start won't be fast enough), you need to use the custom drawing component: https://shopify.github.io/react-native-skia/docs/getting-started/hello-world#example-2

Here is an example: https://github.com/software-mansion-labs/drawings-and-animations-workshop/blob/main/src/SkiaLogo/PathGradient.tsx#L97

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@xcoderreal
Comment options

@wcandillon
Comment options

@xcoderreal
Comment options

Answer selected by xcoderreal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants