“requireNativeComponent: "RNCSafeAreaProvider" was not found in the UIManager.”
See original GitHub issueDescription
I have this error at the begining of my app 😢
NativeBase Version
3.4.3
Platform
- Android
Additional Information
when I use this code in App.js, I get that error and I don’t know why!
I install react-native-safe-area-context and nothing !
import React from "react";
import {NativeBaseProvider, Box} from "native-base";
export default function App() {
return (
<NativeBaseProvider>
<Box>Hello world</Box>
</NativeBaseProvider>
);
}
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:11
Top Results From Across the Web
react native - Invariant Violation: requireNativeComponent ...
Invariant Violation: requireNativeComponent: "RNCSafeAreaProvider" was not found in the UIManager [closed] · Ask Question. Asked 2 years, 7 ...
Read more >Invariant Violation: requireNativeComponent ... - GitHub
Invariant Violation : requireNativeComponent: "RNCSafeAreaProvider" was not found in the UIManager. This error is located at: in ...
Read more >RNCSafeAreaView was not found in the UIManager React ...
1. To solve this error first we have to install react-native-safe-area-context NPM plugin. So open your react native project Root director in ...
Read more >[Solved]-Invariant Violation: requireNativeComponent
Coding example for the question Invariant Violation: requireNativeComponent: "RNCSafeAreaProvider" was not found in the UIManager-React Native.
Read more >Troubleshooting | React Navigation
Now rebuild the app and test on your device or simulator. I'm getting an error "requireNativeComponent: "RNCSafeAreaProvider" was not found in the UIManager"....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I was getting the same issue when creating a new project and just following the installation steps of native base.
solved it by cleaning build folder in xcode and following your steps @mamadfar
I also faced same issue.
yarn add react-native-safe-area-context@4.2.4npx expo run:iosornpx expo run:ios --no-build-cachesolved my issue.