You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was upgrade to RN0.74 and react-native-gesture-handler@2.16.0. But I found that all event callbacks (such as onBegin, onTouchesDown, onTouchesMove) run on the JS thread.
Now I must wrap each callback function using runOnUI.
Steps to reproduce
declare a variable in js thread.
try to console this variable in onTouchesMove fn body.
you can see that was print normally(But in fact, if it is in the UI thread, it cannot be read).
Snack or a link to a repository
none
Gesture Handler version
2.16.0
React Native version
0.74.0
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Fabric (New Architecture)
Build type
Debug mode
Device
Android emulator
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered:
Hi @NiuGuohui! Thanks for reporting this issue! We have already merged fix for this problem. While it wasn't released in 2.16.0, you can expect it to be released by the end of the week.
Description
I was upgrade to RN0.74 and react-native-gesture-handler@2.16.0. But I found that all event callbacks (such as onBegin, onTouchesDown, onTouchesMove) run on the JS thread.
Now I must wrap each callback function using runOnUI.
Steps to reproduce
onTouchesMove
fn body.Snack or a link to a repository
none
Gesture Handler version
2.16.0
React Native version
0.74.0
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Fabric (New Architecture)
Build type
Debug mode
Device
Android emulator
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: