본문 바로가기
ReactNative

React Native Drawer 설치 오류 발생 대처법

by 디지털노마더 2022. 10. 15.

@react-navigation/drawer 라이브러리를 사용하여, Drawer Navigation을 구현

 

react-native run-ios 을 실행하면, "RNSscreen was not found in the uimanager" 에러 문장이 확인되는 경우가 발생한다.

 

이유인 즉슨, 단순히 라이브러리 1개만 설치한다고 모든 기능이 동작하는 것이 아니다.

상호 연관관계가 있는 라이브러리를 함께 설치해주어야 호환성에 문제가 없는 것으로 확인되었다.

npm install @react-navigation/native

npm install react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view

npx pod-install ios

react-native run-ios

 

* 참고 레퍼런스

https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation/

 

댓글