Front-end/React Native Error

[React Native Error] requireNativeComponent: “RNSScreen” was not found in the UIManager

아지송아지 2022. 1. 30. 22:54

react-native run-ios 했을 때 제목과 같은 오류가 낫습니다. 

 

React Navigation은 몇 가지 핵심 유틸리티로 구성되는데 설치가 안되어있어서 나는 오류입니다.

 

터미널에서 아래 명령어를 치면 해결됩니다.

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://stackoverflow.com/questions/66921263/invariant-violation-requirenativecomponent-rnsscreen-was-not-found-in-the-ui

 

Invariant Violation: requireNativeComponent: "RNSScreen" was not found in the UIManager

I am getting RNSScreen error even though I have installed all related packages and followed react-navigation guide (https://reactnavigation.org/docs/getting-started#installation) but nothing worked...

stackoverflow.com