NativeModule:Expo 中 AsyncStorage 为 null

Nel*_*ka 6 react-native expo

我在更新 Expo 和 Expo-Cli 后收到此错误:

\n
Error: [@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
Run Code Online (Sandbox Code Playgroud)\n

当我得知 AsyncStorage 已从react-native-community 中贬值时开始,所以我安装@react-native-async-storage/async-storage并手动更改了所有导入语句,但它仍然不起作用。

\n

另外,我不确定如何Run 反应本机链接@react-native-community/async-storage in the project root.

\n