react-native-safe-area-context: Violation: requireNativeComponent: "RNCSafeAreaView" was not found in the UIManager.

I believe I linked the lib correctly but it still doesn’t find RNCSafeAreaView. Using RN 0.59.x.

[error][tid:com.facebook.react.JavaScript] Invariant Violation: requireNativeComponent: "RNCSafeAreaView" was not found in the UIManager.
    in RNCSafeAreaView (at src/index.tsx:19)

image

image

image

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 27 (1 by maintainers)

Commits related to this issue

Most upvoted comments

Step to resolve

-Stop the current running Metro Bundler

-install pod for ios

-try re-run the application

Hope this will help !

I was able to fix it by adding these two missing files to the project:

image

Opened #6.

Manualy linking helped me: react-native link react-native-safe-area-context

Thanks !

If the command react-native not found, execute this command :

npm i -g react-native-cli

Then execute

react-native link react-native-safe-area-context

Manualy linking helped me: react-native link react-native-safe-area-context

for me i have followed this link to solve the problem : https://github.com/th3rdwave/react-native-safe-area-context

does not work for me. I use expo, and running on android emulator. got any idea?

running below command solved my issue expo add react-native-safe-area-context

Linking the package fixed it via pods