“requireNativeComponent: "RNCSafeAreaProvider" was not found in the UIManager.”

See original GitHub issue

Description

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:closed
  • Created a year ago
  • Reactions:3
  • Comments:11

github_iconTop GitHub Comments

2reactions
mehranjavidcommented, Nov 1, 2022

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 still have this issue! rest the npm cache and clean the gradlew didn’t help me! Any idea please?

@maaliHasan every time you add a new package or you make a critical change, you must rebuild your app and then clean the gradlew and I assure you that it will work.

1reaction
hanamurayukicommented, Oct 26, 2022

I also faced same issue.

yarn add react-native-safe-area-context@4.2.4 npx expo run:ios or npx expo run:ios --no-build-cache

solved my issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found