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)
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 27 (1 by maintainers)
Commits related to this issue
- [iOS] Fix manual linking Fix #4 — committed to brunolemos/react-native-safe-area-context by brunolemos 5 years ago
- [iOS] Fix manual linking (#6) Fix #4 — committed to th3rdwave/react-native-safe-area-context by brunolemos 5 years ago
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:
Opened #6.
Thanks !
If the command react-native not found, execute this command :
Then execute
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
running below command solved my issue
expo add react-native-safe-area-context
Linking the package fixed it via pods