[RN] TypeError: null is not an object(evaluating '_ReanimatedModule.default.createNode')

Drawer Navigation을 사용하기 위해서 React Navigation document를 참고하여 필요한 package와 dependencies을 설치하였다. 설치한 항목은 아래와 같다.

  • react-navigation/drawer
  • react-native-gesture-handler
  • react-native-reanimated
  • react-native-safe-area-context
  • react-native-screens

설치 완료후, 프로젝트를 실행시키니 다음과 같은 에러가 발생하였다.

Error

Error name : TypeError: null is not an object(evaluating '_ReanimatedModule.default.createNode')

 ERROR  TypeError: null is not an object (evaluating '_ReanimatedModule.default.createNode')
 ERROR  Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect. 
      This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
 ERROR  Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect. 
      This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.

Solution

설치된 "react-native-gesture-handler", "react-native-reanimated"의 버전을 아래와 같이 변경하니 재대로 동작하였다.

 "react-native-gesture-handler": "^1.10.3"
 "react-native-reanimated": "^1.13.2"

좋은 웹페이지 즐겨찾기