Front-end/React Native Error

[React Native Error] Tried to register two views with the same name RNSScreenContainer

아지송아지 2022. 1. 31. 11:49

 

"Tried to register two views with the same name RNSScreenContainer"

 

React Native에서 navigation 세팅하다가 위와 같은 오류가 있었는데요

서로 다른 버전의 패키지가 node_module에 설치되어 나는 오류라고 합니다.

저는 버전을 맞춰주기 위하여 "npm update"를 사용하였습니다.

 

참고 : https://github.com/software-mansion/react-native-screens/issues/15

 

Tried to register two views with the same name RNSScreen · Issue #15 · software-mansion/react-native-screens

Getting the following issue when I add import { useScreens } from 'react-native-screens'; in my App.js react-native info Environment: OS: macOS High Sierra 10.13.5 Node: 10.10.0 Yarn: 1.9.4...

github.com