我在运行应用程序时遇到这些错误。
bundling failed: Error: Unable to resolve module ` react-native-screens` from `node_modules/react-navigation-tabs/src/navigators/createBottomTabNavigator.js`
如何解决此错误。我刚刚重新安装了节点模块,然后再次安装了模块。有人能帮忙吗?
根据您的react原生版本,对于>=0.60.x,只需运行:
npm install react-native-screens
并且对于<=0.59.9:
npm install react-native-screens
react-native link react-native-screens
自react native>=0.60起,无需手动链接
所以对于您的问题
删除node_modules文件夹然后
npm install
npm install react-native-screens
or
yarn
yarn add react-native-screen
关闭终端
清理项目=>cd android
=>./gradlew clean
删除旧应用程序然后重新运行
运行以下命令
npm install react-native-screens
react-native link react-native-screens