Describe the bug
I am getting the following message when I try to open a modal from within a useEffect, is this allowed?
WARN [react-native-gesture-handler] None of the callbacks in the gesture are worklets. If you wish to run them on the JS thread use '.runOnJS(true)' modifier on the gesture to make this explicit. Otherwise, mark the callbacks as 'worklet' to run them on the UI thread.
I'm using Expo 51 with "react-native-gesture-handler": "^2.17.1" and "react-native-reanimated": "^3.12.1".
Describe the bug I am getting the following message when I try to open a modal from within a
useEffect
, is this allowed?WARN [react-native-gesture-handler] None of the callbacks in the gesture are worklets. If you wish to run them on the JS thread use '.runOnJS(true)' modifier on the gesture to make this explicit. Otherwise, mark the callbacks as 'worklet' to run them on the UI thread.
I'm using Expo 51 with
"react-native-gesture-handler": "^2.17.1"
and"react-native-reanimated": "^3.12.1"
.Here are some code snippets: