Replies: 1 comment
-
|
If you reference values from the react state in gesture callback functions, it depends how you create the gesture. If you don't memoize the gesture and just call e.g. If you memoize your gesture e.g. with If you mean updating react state once the In general, you should avoid synchronizing worklet callbacks with react state when possible, especially in handlers like You can explain your specific case and I will try to give more suggestions on the valid approach for you. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
how can i sync Gesture.Pan() methods (onUpdate, onEnd) with react state
so when these methods are called they have the updated react state value
Beta Was this translation helpful? Give feedback.
All reactions