简体   繁体   English

尝试导入错误:“shouldUseActivityState”未从“react-native-screens”导出

[英]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.

相关问题 react-native-screens: compileDebugKotlin 错误 - react-native-screens: compileDebugKotlin Error 尝试导入错误:“ DeviceEventEmitter”未从“ react-native”导出 - Attempted import error: 'DeviceEventEmitter' is not exported from 'react-native' 尝试导入错误:当编译react-native到react-native-web时,不会从'./apiFetcher'导出'ApiGet' - Attempted import error: 'ApiGet' is not exported from './apiFetcher' when compile react-native to react-native-web React Native 错误 - “尝试导入错误:'Item' 未从 'native-base' 导出。” - React Native error - "Attempted import error: 'Item' is not exported from 'native-base'." 尝试导入错误:'未从 - Attempted import error:' is not exported from 反应错误“尝试导入错误:'TodoItem'未从'./Todoitem'导出。” - error in react " Attempted import error: 'TodoItem' is not exported from './Todoitem'. " 尝试导入错误:“getMoviesList”未从“./actions”导出; 反应错误 redux - Attempted import error: 'getMoviesList' is not exported from './actions'; error in react redux 尝试导入错误:“Sonnet”未从“react-bootstrap”导出 - Attempted import error: 'Sonnet' is not exported from 'react-bootstrap' 尝试导入错误:“出口”未从“react-router-dom”导出 - Attempted import error: 'Outlet' is not exported from 'react-router-dom' 尝试导入错误:“useDispatch”未从“react-redux”导出 - Attempted import error: 'useDispatch' is not exported from 'react-redux'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM