question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

runOnJS Errors in Reanimated 2.0.0-alpha.8

See original GitHub issue

Bug

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:

Simulator Screen Shot - iPhone 11 - 2020-11-01 at 23 09 38

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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:23 (6 by maintainers)

github_iconTop GitHub Comments

10reactions
He1nr1chKcommented, Sep 1, 2021

Does anyone have a fix for this? Still occurs in Expo 42 and “@gorhom/bottom-sheet”: “^4.0.2”,

4reactions
gorhomcommented, Nov 19, 2020

hi @Johan-dutoit, thanks for testing it on both platforms.

I will prepare the release later today 👏

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found