Skip to content

How to draw multiple circles dynamically (Cartesian Chart tooltip intersections) #2346

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

You must be logged in to vote

To have dynamic arrays of shared values you can look at this example: https://github.com/wcandillon/can-it-be-done-in-react-native/blob/ceb3d22418d6e7d3dc7535e1710f04d03c150b6e/season5/src/Instagram/StickerModal.tsx#L14 (makeMutable is the non hook version of useSharedValue).

Of course another great way to animate on a dynamic number of drawing elements is Picture: https://shopify.github.io/react-native-skia/docs/shapes/pictures/

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@carlreiser2
Comment options

Answer selected by carlreiser2
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