react-native-draw icon indicating copy to clipboard operation
react-native-draw copied to clipboard

Support reanimated

Open tiamed opened this issue 4 years ago • 1 comments

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

tiamed avatar Apr 19 '22 23:04 tiamed

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. image

simonapostolovski avatar May 13 '22 11:05 simonapostolovski