'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



Solution 1:[1]

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

yarn install

cd ios && pod install

The answer was got from here

Solution 2:[2]

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...)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Anton Liannoi
Solution 2 Glenn Maynard