Skip to content

ERROR Invariant Violation: requireNativeComponent: "RNCSafeAreaProvider" was not found in the UIManager. #4198

@bojarovski

Description

@bojarovski

I have this error. Does someone know how I can resolve this?
I'm having a problem with this error when building my application. I'm using Expo Go, and I'm building with expo-dev-client. I've also tried removing Expo and rebuilding, but I still get the same error message. I've tried everything I can think of, and I'm out of ideas.

image

Note
This error only occurs when I build the application. I didn’t notice this error before because I was working on Expo Go, and in that case, I don’t have this problem. The issue arises only when I build the application.

App.js

export default function App() {
  return (
    <Provider store={store}>
      <PaperProvider>
        <StatusBar style="light" />
        <GestureHandlerRootView style={{ flex: 1 }}>
          <Root />
        </GestureHandlerRootView>
      </PaperProvider>
    </Provider>
  );
}


I installed this library

`react-native-safe-area-context": ^4.7.4`

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency filequestionQuestion related to the library, not an issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions