AsyncStorage

一个提供异步、未加密、持久的键值存储 API 的库。

Android
iOS
macOS
tvOS
Web

异步、未加密、持久的键值存储 API。

¥An asynchronous, unencrypted, persistent, key-value storage API.

安装

¥Installation

Terminal
npx expo install @react-native-async-storage/async-storage

If you are installing this in an existing React Native app, start by installing expo in your project. Then, follow the additional instructions provided by the library's README or documentation.

用法

¥Usage

有关使用说明,请参阅 Async Storage 的文档

¥See Async Storage's documentation for usage instructions.