React Native-AsyncStorage为空

问题描述 投票:0回答:1

enter image description here

添加AsyncStorage依赖项(https://github.com/react-native-community/async-storage)时出现这些错误

我使用的是React Native CLI,而不是expo,我在项目根目录中运行过'react-native链接@ react-native-community / async-storage'。

我的问题是当我运行'--clearCache'标志时,也许这是我的问题,我不知道。如果您知道如何运行标志'--clearCache',请帮助我。

ios react-native asyncstorage
1个回答
0
投票

尝试一下

react-native链接@ react-native-community / async-storage

然后运行react-native run-android

© www.soinside.com 2019 - 2024. All rights reserved.