Reference version

This is documentation for the next SDK version. For up-to-date documentation, see the latest version (SDK 55).

@react-native-async-storage/async-storage

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

Android
iOS
macOS
tvOS
Web
Included in Expo Go

For the complete documentation index, see llms.txt. Use this Use this file to discover all available pages.

Async Storage 是一种异步、未加密、持久化的键值存储解决方案。

安装

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

If you are installing this in an existing React Native app, make sure to install expo in your project. Then, follow the installation instructions provided in the library's README or documentation.

了解更多

访问官方文档

获取有关该 API 及其用法的完整信息。