如何在 react-native 中 link 包
How to link packages in react-native
我在 运行 我的应用程序中遇到这些错误。
bundling failed: Error: Unable to resolve module ` react-native-screens` from `node_modules/react-navigation-tabs/src/navigators/createBottomTabNavigator.js`
如何解决这个错误。我刚刚重新安装了节点模块并再次安装了模块。有人可以帮忙吗?
运行 遵循命令
npm install react-native-screens
react-native link react-native-screens
取决于你的反应本机版本 >= 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
删除旧应用
然后重新 运行
我在 运行 我的应用程序中遇到这些错误。
bundling failed: Error: Unable to resolve module ` react-native-screens` from `node_modules/react-navigation-tabs/src/navigators/createBottomTabNavigator.js`
如何解决这个错误。我刚刚重新安装了节点模块并再次安装了模块。有人可以帮忙吗?
运行 遵循命令
npm install react-native-screens
react-native link react-native-screens
取决于你的反应本机版本 >= 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
删除旧应用 然后重新 运行