본문 바로가기
카테고리 없음

[ReactNative] iOS콘솔경고 RCTBridge required dispatch_sync to load RNGestureHandlerModule. This may lead to deadlocks

by 너구리새우깡 2022. 4. 19.

 

안드로이드로 먼저 작업하다가 iOS빌드했는데 못보던 노란 콘솔경고가 떴다.

 

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

 

 

react-native-reanimated와 react-native-gesture-handler 라이브러리가 충돌해서 생기는 현상이라고 한다.

 

나는 react-native-reanimated 2.7.0 버전을 쓰고 있었고

라이브러리의 버전을 2.2.4로 낮추니 해결되었다. 

react-native-reanimated 2.7.0 -> 2.2.4 

 

해결책

1. 터미널 열고 프로젝트 경로로 이동한다.

2. yarn add react-native-reanimated@2.2.4  

3. cd ios && pod install

 

끝. 

 

 

참고 사이트:

https://github.com/software-mansion/react-native-gesture-handler/issues/722