Organising code: useValue, useSharedValue, useState #1496
ryanpwaldon
started this conversation in
General
Replies: 1 comment 7 replies
-
Yes Ryan we share this feeling. We recommend to use the Reanimated 3 integration if possible: https://shopify.github.io/react-native-skia/docs/animations/reanimated |
Beta Was this translation helpful? Give feedback.
7 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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using both Reanimated & Skia.
I have many components consuming different types of values (i.e.
useValue
,useSharedValue
,useState
).At times, it feels super overwhelming to organise. Particularly, when I have to convert values before they're passed as props into a component (for example,
state value
→SkiaValue
, or from aSharedValue
to aSkiaValue
).Are there any nice ways / tips on how to manage this?
Beta Was this translation helpful? Give feedback.
All reactions