-
const onGestureEvent = useAnimatedGestureHandler({
}) How can this code be run? When calling navigation.goBack() it throws the Tried to synchronously call anonymous function from a different thread.. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
For anyone that's struggling too, the solution is wrapping the navigation.goBack() with runOnJS imported from react-native-reanimated like this: |
Beta Was this translation helpful? Give feedback.
For anyone that's struggling too, the solution is wrapping the navigation.goBack() with runOnJS imported from react-native-reanimated like this:
runOnJS(navigation.goBack)()
Found it thanks to this