[英]Unable to resolve path to module 'react-native-screens' (ESLint)
Got this lint error in my VS Code:在我的 VS Code 中出现这个 lint 错误:
Unable to resolve path to module 'react-native-screens'.eslint(import/no-unresolved) module "react-native-screens"
无法解析模块“react-native-screens”的路径。eslint(import/no-unresolved) 模块“react-native-screens”
You need to install 3 more libs react-native-gesture-handler , react-native-reanimated , and react-native-screens in order to work with navigation.您需要再安装 3 个库react-native-gesture-handler 、 react-native-reanimated和react-native-screens才能使用导航。
Run this code :运行此代码:
npm install --save react-native-gesture-handler react-native-reanimated react-native-screens
For more information visit - here欲了解更多信息,请访问 - 这里
If you have the only issue with screens package install only that dependency如果您对屏幕包有唯一的问题,请仅安装该依赖项
Hope this helps :)希望这可以帮助 :)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.