Search code examples
androidreact-nativeapk

How to link packages in react-native


I am getting these errors while running my app.

bundling failed: Error: Unable to resolve module ` react-native-screens` from `node_modules/react-navigation-tabs/src/navigators/createBottomTabNavigator.js`

How to solve this error. I just reinstalled the node modules and again installed the modules. Can someone help?


Solution

  • as of react native >= 0.60 there is no need for manually linking

    so for your issue

    remove node_modules folder and then

    npm install
    
    npm install react-native-screens
    
    or
    
    yarn
    
    yarn add react-native-screen
    

    close the terminal

    clean the project => cd android => ./gradlew clean

    remove the old app then re run