as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
@amazon-devices/react-native-async-storage__async-storage is an extension of react-native-async-storage/async-storage that enables its use in React Native for Vega apps. The library supports an asynchronous, unencrypted, persistent, key-value storage system for React Native for Vega apps and is usable in both TypeScript and JavaScript. This library is system-deployed and available to React Native for Vega apps without a separate installation process. The library is deployed as an autolinking library, which your app links to at runtime. The library is guaranteed to be compatible only with the version of React Native for Vega for which it’s built. When you uplevel your app’s version of React Native for Vega, consider the best practice of upleveling its library dependencies.

Install the library

  1. Add the JavaScript library dependency in the package.json file. Select the tab for your React Native version.
  1. Reinstall the package-lock.json file using the npm install command.

Examples

Storing data

Storing the string value

Storing the object value

Reading data

Reading the string value

Reading the object value

API reference

For more details and usage examples, see react-native-async-storage/async-storage library’s documentation.

Additional resources

For information on other libraries, see Supported Third-Party Libraries and Services.
最后修改于 2026年7月10日