React Native ERROR Invariant Violation: requireNativeComponent: "RNSScreen" was not found in the UIManager.
리액트 네이티브 네비게이션은 의존 패키지가 있나보네요.
ERROR Invariant Violation: requireNativeComponent: "RNSScreen" was not found in the UIManager.
This error is located at:
in RNSScreen (at createAnimatedComponent.js:211)
in AnimatedComponent (at createAnimatedComponent.js:264)
in AnimatedComponentWrapper (at src/index.native.tsx:281)
in MaybeFreeze (at src/index.native.tsx:280)
in Screen (at Screens.tsx:37)
in MaybeScreen (at CardStack.tsx:654)
in RNSScreenContainer (at src/index.native.tsx:351)
in ScreenContainer (at Screens.tsx:20)
in MaybeScreenContainer (at CardStack.tsx:566)
in RCTView (at View.js:32)
in View (at Background.tsx:13)
in Background (at CardStack.tsx:564)
in CardStack (at StackView.tsx:437)
in RNCSafeAreaProvider (at SafeAreaContext.tsx:87)
in SafeAreaProvider (at SafeAreaProviderCompat.tsx:46)
in SafeAreaProviderCompat (at StackView.tsx:430)
in RNGestureHandlerRootView (at GestureHandlerRootView.android.tsx:23)
in GestureHandlerRootView (at StackView.tsx:429)
in StackView (at createStackNavigator.tsx:121)
in Unknown (at createStackNavigator.tsx:120)
in StackNavigator (at App.tsx:22)
in EnsureSingleNavigator (at BaseNavigationContainer.tsx:430)
in BaseNavigationContainer (at NavigationContainer.tsx:132)
in ThemeProvider (at NavigationContainer.tsx:131)
in NavigationContainerInner (at App.tsx:21)
in App (at renderApplication.js:50)
in RCTView (at View.js:32)
in View (at AppContainer.js:92)
in RCTView (at View.js:32)
in View (at AppContainer.js:119)
in AppContainer (at renderApplication.js:43)
in rnstudy(RootComponent) (at renderApplication.js:60)
npm install react-native-screens 설치해주고 다시 빌드 실행해줍니다.
댓글
댓글 쓰기