kreeguy100
kreeguy100

Reputation: 69

Getting error RCTBridge required dispatch_sync to load RNGestureHandlerModule. This may lead to deadlocks

I'm getting the same error as this issue

However rather than RCTDevLoadingView mine is referring to RNGestureHandlerModule. Similar to the issue linked above, my guess is that it's something related to making an update in the appdelegate.m file, however I cant figure out what that entails.

I'm using react-native 0.67.1 and react-native-gesture-handler 2.2.0.

Thank you

Upvotes: 6

Views: 5878

Answers (2)

Anton L.
Anton L.

Reputation: 818

UPDATE: the issue was fixed in version 2.8.0

So if you do not depend on the old versions, just run

npm install react-native-reanimated@latest

or yarn add react-native-reanimated@latest.

Then cd ios && pod install

Old answer:

Change react-native-reanimated version to ~2.2.4 in package.json, then run

npm install or yarn install

cd ios && pod install

The answer was got from here

Upvotes: 15

Glenn Maynard
Glenn Maynard

Reputation: 57514

This seems to be fixed in 2.8.0:

https://github.com/software-mansion/react-native-reanimated/commit/d6c73042900767e4065284cc39970c2fe0d73a97

This did, in fact, cause deadlocks for me like the warning said it could. (So it's nice that it's actually fixed instead of them just trying to hide the warning and making it harder to debug. Fortunately it didn't hide it in the Xcode console, or this would have been a real nightmare...)

Upvotes: 3

Related Questions