react-native-draw
react-native-draw copied to clipboard
Support reanimated
Is your feature request related to a problem?
This library currently conflicts with react-native-reanimated@2 or [email protected] showing the error tried to synchronously call function from a different thread

Desired solution (feature)
Mark functions like addPointToPath as a worklet or wrap it using runOnJS
Alternatives considered
No response
Anything else?
https://docs.swmansion.com/react-native-gesture-handler/docs/2.3.0/api/gestures/base-gesture-config/#runonjsvalue-boolean
I had the same issue, check here https://stackoverflow.com/a/71691422/13667202
Same has been reported here https://github.com/software-mansion/react-native-reanimated/issues/2710
I added the runOnJS(true) to the Gesture and its not crashing any more.
