react-native/AsyncStorage
react-native/AsyncStorageAsyncStorage 是一个在 react-native 中轻量存储的库;跟 localStorage 类似,API 也几乎一样;存储的时候需要将存储内容转成字符串存储;不然会有报错提示;1. 安装yarn install @react-native-async-storage/async-storageornpm install @react-native-async-storage/async-storage2. 使用import A
原创
2022-05-18 22:32:53 ·
724 阅读 ·
0 评论