Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"RNCSafeAreaProvider" was not found in the UIManager. #5774

Open
5 tasks
shamkarthik opened this issue Jul 16, 2023 · 2 comments
Open
5 tasks

"RNCSafeAreaProvider" was not found in the UIManager. #5774

shamkarthik opened this issue Jul 16, 2023 · 2 comments

Comments

@shamkarthik
Copy link

Description

I was trying to integrate NativeBase with React Native 0.72.3

CodeSandbox/Snack link

na

Steps to reproduce

  1. yarn add native-base react-native-svg@12.1.1 react-native-safe-area-context@3.3.2
  2. 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:
image

NativeBase Version

3.4.28

Platform

  • Android
  • CRA
  • Expo
  • iOS
  • Next

Other Platform

react native cli

Additional Information

  1. 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
image

@AdarshJais
Copy link

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.

@EOMZON
Copy link

EOMZON commented Dec 27, 2023

Have you already solved this problem? I have encountered the same problem as you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants