as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
MMKV is an efficient, mobile, key-value storage framework developed by WeChat. With the @amazon-devices/react-native-mmkv library, you can use MMKV inside your React Native app through fast and direct JS bindings to the native C++ library. See Tencent/MMKV for more information.

Installation

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

Example

Example of creating simple storage for random key-value pairs.

API reference

MMKV library on Vega provides turbomodules, which add support for the following native MMKV methods. See the dedicated documentation page for more information about this library and API reference.

Native MMKV

Hooks

Configuration

Mode

Known Issues

  • The recrypt method isn’t supported on a Vega Virtual Device.
  • The useMMKVBuffer hook isn’t supported.

Additional resources

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