Invariant Violation: requireNativeComponent: "RNCSafeAreaView" was not found in the UIManager.

Invariant Violation: requireNativeComponent: “RNCSafeAreaView” was not found in the UIManager.

This error is located at:
in RNCSafeAreaView (at src/index.tsx: 26)
in SafeAreaProvider (at App.js:312)
in Provider (at App.js:311)
in App (at withExpoRoot.js:26)
in RootErrorBoundary (at withExpoRoot.js:25)

  • node_modules/react-native/Libraries/ReactNative/getNativeComponentAttributes.js:29:4 in getNativeComponentAttributes

  • node_modules/react-native/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js:104:25 in

  • … 21 more stack frames from framework internals

Warning: %s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI., RootErrorBoundary

  • node_modules/expo/build/environment/muteWarnings.fx.js:27:24 in error

  • … 28 more stack frames from framework internals

Warning: Can’t perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in %s.%s, the componentWillUnmount method,

in App (at withExpoRoot.js:26)

in RootErrorBoundary (at withExpoRoot.js:25)

in ExpoRoot (at renderApplication.js:35)

in RCTView (at View.js:45)

in View (at AppContainer.js:98)

in ChildrenWrapper (at wrapRootComponent.js:9)

in _class (at wrapRootComponent.js:8)

in Root (at Expo.fx.js:26)

in DevAppContainer (at Expo.fx.js:25)

in PatchedProviderComponent (at AppContainer.js:112)

in RCTView (at View.js:45)

in View (at AppContainer.js:115)

in AppContainer (at renderApplication.js:34)

  • node_modules/expo/build/environment/muteWarnings.fx.js:27:24 in error

  • node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js:638:36 in warningWithoutStack

  • node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js:16356:6 in warnAboutUpdateOnUnmounted

  • node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js:17937:37 in scheduleWork

  • node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js:6934:17 in enqueueSetState

  • node_modules/react/cjs/react.development.js:325:31 in

  • App.js:270:31 in
  • node_modules/promise/setimmediate/core.js:37:14 in tryCallOne

  • node_modules/promise/setimmediate/core.js:123:25 in

  • … 8 more stack frames from framework internals

I updated the react-navigation 3.x to 4.0.10 in my project and start getting above Error.

It got resolved and it was due to react-native-safe-area-view latest version and expo sdk version was 34 and for the react-native-safe-area-view 1.0 the sdk version should be > 34.

1 Like