close

[Solved] Invariant Violation: requireNativeComponent: “RNSScreen” was not found in the UIManager

While running my react native app I am facing the following error: Invariant Violation: requireNativeComponent: “RNSScreen” was not found in the UIManager in React-Native. In this Exerror article, We are going to learn about How to reproduce this error and we will discuss All Possible Solutions Lets Get Start with This Article.

How Invariant Violation: requireNativeComponent: “RNSScreen” was not found in the UIManager Error Occurs?

While running my react native app I am facing the following error:

Invariant Violation: requireNativeComponent: "RNSScreen" was not found in the UIManager

So here I am writing all the possible solutions that I have tried to resolve this error.

How To Solve Invariant Violation: requireNativeComponent: “RNSScreen” was not found in the UIManager Error?

  1. How To Solve Invariant Violation: requireNativeComponent: “RNSScreen” was not found in the UIManager Error?

    To Solve Invariant Violation: requireNativeComponent: “RNSScreen” was not found in the UIManager Error Open Your Project Terminal and run this command to install/update all packages: npm install react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view and then try to run your project and Your project will run without any error now, your error will be solved.

  2. Invariant Violation: requireNativeComponent: “RNSScreen” was not found in the UIManager

    To Solve Invariant Violation: requireNativeComponent: “RNSScreen” was not found in the UIManager Error You need to install react-native-screens and then re-run your project will resolve your error. First of all, Open your Terminal from the root of your Project and then install react-native-screens by running this command: npm i react-native-screens And then You can run your project by running this command: npx react-native run-android Or For iOS, you can run this command: npx pod-install ios && react-native run-ios Now, Your error will be solved. Thanks.

Solution 1: Install react-native-screens

To Solve Invariant Violation: requireNativeComponent: “RNSScreen” was not found in the UIManager Error You need to install react-native-screens and then re-run your project will resolve your error.

First of all, Open your Terminal from the root of your Project and then install react-native-screens by running this command.

npm i react-native-screens

And then You can run your project by running this command.

npx react-native run-android

Or For iOS, you can run this command.

npx pod-install ios

react-native run-ios

Now, Your error will be solved. Thanks.

Solution 2: Install this

Open Your Project Terminal and run this command to install/update all packages.

npm install react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view

and then try to run your project and Your project will run without any error now, your error will be solved.

Solution 3: Install react-native-safe-area-context

Install react-native-safe-area-context and react-native-screens will resolve this error.

npm install react-native-safe-area-context
npm install react-native-screens

Now, Your error will be resolved. Thank You.

Conclusion

It’s all About this error. I hope We Have solved Your error. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment