runOnJS Errors in Reanimated 2.0.0-alpha.8
See original GitHub issueBug
Reanimated V2 just released 2.0.0-alpha.8
. It offers lots of fixes over 2.0.0-alpha.7
and no longer requires turbo modules to be globally enables (no more AppDelegate setup). There is a breaking change in that you now must explicitly specify which thread you’re running a function, either runOnJS or runOnUI. Functions must either runOnUI if they are to be sync or runOnJS if they are to be async. See here.
In iOS using the bottom sheet results in this error:
Environment info
Library | Version |
---|---|
@gorhom/bottom-sheet | 2.0.0-alpha.0 |
react-native | 0.63.2 |
react-native-reanimated | 2.0.0-alpha.8 |
react-native-gesture-handler | 1.7.0 |
Steps To Reproduce
Use bottom-sheet with Reanimated V2 2.0.0-alpha.8
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:23 (6 by maintainers)
Top Results From Across the Web
runOnJS | React Native Reanimated - Software Mansion
runOnJS returns a function which can be safely run from the UI thread. Example. Here is an example of calling a javascript callback...
Read more >Unable to resolve module `react-native-reanimated`
The following error occure on node terminal. React-tab-navigation throwing the following error. error: bundling failed: Error: Unable to resolve ...
Read more >react native reanimated not working - You.com | The search ...
Configure project as per v2 installation guidelines and import API's. Issues to fix. Issue 1: useAnimatedStyle hook is one of the main element...
Read more >react-native-reanimated - Bountysource
After upgrading to react-native version 0.65.0 with reanimated 2.2.0 I got the following error: Execution failed for task ':app:mergeDebugAssets'.
Read more >react-native-reanimated: Versions - Openbase
Full version history for react-native-reanimated including change logs. ... Route JS errors from UI runtime throught RN's LogBox module by @kmagiera in ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Does anyone have a fix for this? Still occurs in Expo 42 and “@gorhom/bottom-sheet”: “^4.0.2”,
hi @Johan-dutoit, thanks for testing it on both platforms.
I will prepare the release later today 👏