在 /expo/build/Notifications 中找不到 AsyncStorage 模块

AsyncStorage module not found in /expo/build/Notifications

当我在 Web 模式下尝试 运行 应用程序时,我遇到了下面提到的错误。

/node_modules/expo/build/Notifications/Notifications.js
Module not found: Can't resolve 'react-native-web/dist/exports/AsyncStorage' in '/Users/i322865/node_modules/expo/build/Notifications'

我正在使用最新的 expo(0.36,我在使用 0.35 版本时也遇到了同样的错误)并响应本机 Web 0.12.0-rc.1。请帮助解决这个问题,如果您需要任何进一步的详细信息,请告诉我。

此模块 (AsyncStorage) 在 react-native-web 上不可用:^0.12

如果您需要使用 AsyncStorage,您可以使用版本:"react-native-web": "0.11.7",

PS:您可以在本期查看有关该主题的更新:https://github.com/necolas/react-native-web/issues/1515

官方立场是:

Use 0.11 until the community packages add web support. 
They've known this was coming for 9 months react-native-community/async-storage#52

此致