NativeBase
NativeBase copied to clipboard
"RNCSafeAreaProvider" was not found in the UIManager.
Description
I was trying to integrate NativeBase with React Native 0.72.3
CodeSandbox/Snack link
na
Steps to reproduce
- yarn add native-base [email protected] [email protected]
- updated App.tsx as given in the docs
import {Box, NativeBaseProvider} from 'native-base';
import React from 'react';
const App = () => {
return (
<NativeBaseProvider>
<Box safeArea>NativeBase</Box>
</NativeBaseProvider>
);
};
export default App;
error:
NativeBase Version
3.4.28
Platform
- [ ] Android
- [ ] CRA
- [ ] Expo
- [ ] iOS
- [ ] Next
Other Platform
react native cli
Additional Information
- also tried giving safeareaprovider as such and still received the same error
import {Box, NativeBaseProvider} from 'native-base';
import React from 'react';
import {SafeAreaProvider} from 'react-native-safe-area-context';
const App = () => {
return (
<SafeAreaProvider>
<NativeBaseProvider>
<Box safeArea>NativeBase</Box>
</NativeBaseProvider>
</SafeAreaProvider>
);
};
export default App;
error
Hi @shamkarthik, I faced the same issue while adding NB to the new fresh RN latest project. I was able to solve this by rebuilding the app after adding the package. Hope this works for you too. Let me know if you this get resolve for you as well.
Have you already solved this problem? I have encountered the same problem as you.
any updates?