我在Atom上从React Native收到此错误:
无法解析模块“反应本机屏幕”
这是我的步骤:
npm install --save react-navigation
,得到以下信息:npm install
:然后,当我运行我的应用程序时,出现错误:
无法解析“ node_modules \ react-navigation-stack \ lib \ module \ views \ StackView \ StackViewCard.js”中的“ react-native-screens”
。构建JavaScript捆绑包失败。
你需要安装3个库react-native-gesture-handler
,react-native-reanimated
和react-native-screens
。
npm install --save react-native-gesture-handler react-native-reanimated react-native-screens
参考:https : //reactnavigation.org/docs/en/getting-started.html#installing-dependencies-into-a-bare-react-native-project
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句