[英]Attempted import error: 'shouldUseActivityState' is not exported from 'react-native-screens'
I'm getting this error :我收到此错误:
C:/Users/Mobile/node_modules/@react-navigation/drawer/lib/module/views/ResourceSavingScene.js Attempted import error: 'shouldUseActivityState' is not exported from 'react-native-screens'.
C:/Users/Mobile/node_modules/@react-navigation/drawer/lib/module/views/ResourceSavingScene.js Attempted import error: 'shouldUseActivityState' is not exported from 'react-native-screens'.
before i was able to do login authentication and now it says 405 error i don't know if this is related to this error or not.I'm creating project using react native expo.在我能够进行登录身份验证之前,现在它说 405 错误我不知道这是否与此错误有关。我正在使用 react native expo 创建项目。
Assuming you are using Expo 40,假设您使用的是 Expo 40,
I can confirm that per this comment on 'warnings printing to console for un-exported members of react-native-screens' ,我可以确认,根据关于“为 react-native-screens 的未导出成员打印到控制台的警告”的评论,
you can make the compile/console warning go away if you upgrade react-native-screens to newer version — if you are ok with expo warning you that your react-native-screens version number is out of range (Expo 40 wants screens version ~2.15.0, actual current version 2.17.x)如果您将 react-native-screens 升级到较新的版本,您可以使编译/控制台警告消失 -如果您对 expo 警告您的 react-native-screens 版本号超出范围(Expo 40 需要屏幕版本〜) 2.15.0,实际当前版本 2.17.x)
将 expo 升级到 41.0.1 并将 react-native-screens 升级到 3.0.0 ~~删除警告
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.