gunnartorfis / sonner-native

An opinionated toast component for React Native. A port of @emilkowalski's sonner.
https://gunnartorfis.github.io/sonner-native
MIT License
451 stars 17 forks source link

[react-native-gesture-handler] None of the callbacks in the gesture are worklets #116

Closed wogno closed 1 month ago

wogno commented 1 month ago

Describe the bug Always get this warning Working well, but I have this warning [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.

To Reproduce Steps to reproduce the behavior:

  1. Just install and show toast

Expected behavior Without warning

Screenshots If applicable, add screenshots to help explain your problem.

Environment info

Library Version
sonner-native 0.14.1
react-native 0.75.3
react-native-reanimated 3.15.2
react-native-gesture-handler 2.19.0

Additional context Add any other context about the problem here.

gunnartorfis commented 1 month ago

Just released 0.14.2, which fixes this. Let me know if it doesn't.

wogno commented 1 month ago

I upgrade version to recommended and that work well thanks.