Rnsscreen was not found in the uimanager

The error “rnsscreen was not found in the uimanager” usually occurs when trying to run a React Native app that uses the React Navigation library, but with some modules not properly installed or linked. This error is typically thrown when the app is unable to find the required module for screens (e.g., RNScreen).

To resolve this issue, you need to ensure that all the necessary dependencies are installed and linked correctly. Here’s a step-by-step guide with examples:

  1. Install the required dependencies:

            
              npm install @react-navigation/native
              npm install react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view
            
          
  2. Link the dependencies:

            
              npx react-native link
            
          
  3. Clear the cache and rebuild the project:

            
              cd android && ./gradlew clean
              cd .. && npx react-native run-android
            
          

    or

            
              npx react-native start --reset-cache
              npx react-native run-ios
            
          

These steps ensure that the necessary packages are correctly installed, linked, and the cache is cleared to avoid any potential conflicts. After performing these steps, you should be able to run your React Native app without encountering the “rnsscreen was not found in the uimanager” error.

Similar post

Leave a comment