我在更新 Expo 和 Expo-Cli 后收到此错误:
\nError: [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null.\n\nTo fix this issue try these steps:\n\n  \xe2\x80\xa2 Run `react-native link @react-native-community/async-storage` in the project root.\n\n  \xe2\x80\xa2 Rebuild and restart the app.\n\n  \xe2\x80\xa2 Run the packager with `--reset-cache` flag.\n\n  \xe2\x80\xa2 If you are using CocoaPods on iOS, run `pod install` in the `ios` directory and then rebuild and re-run the app.\n\n  \xe2\x80\xa2 If this happens while testing with Jest, check out docs how to integrate AsyncStorage with it: https://react-native-community.github.io/async-storage/docs/advanced/jest\n\nIf none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-community/react-native-async-storage/issues\n当我得知 AsyncStorage 已从react-native-community 中贬值时开始,所以我安装@react-native-async-storage/async-storage并手动更改了所有导入语句,但它仍然不起作用。
另外,我不确定如何Run 反应本机链接@react-native-community/async-storage in the project root.
| 归档时间: | 
 | 
| 查看次数: | 1798 次 | 
| 最近记录: |