A fast and reliable key-value storage library for React Native, wrapping Tencent's MMKV (used by WeChat). Version 12.0.1 is current, with updates driven by RN breaking changes. It uses JSI for synchronous C++ operations (no async gaps), supports multiple encrypted instances, and ships TypeScript types. Unlike async-storage or simple MMKV wrappers, it offers React hooks (useMMKVStorage, useIndex) and 0.0002s read/write. Released under MIT, maintained on GitHub.
npm install react-native-mmkv-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows initialization with MMKVLoader, useMMKVStorage hook for reactive state, and sync set. Typescript works without extra types.
Upgrade to React Native 0.71+ or stick with v0.8.x
Re-link native modules and update initialization to new MMKVLoader API
Use 'new MMKVLoader().initialize()' instead
Use storage.getString('key') outside components, not hookAlways call setEncryptionKey() before initialize() if you need encryption. Cannot change later.
Ensure you call 'new MMKVLoader().initialize()' and check import: use '{ MMKVLoader }' not default import.Run 'cd ios && pod deintegrate && pod install' and ensure only one version of MMKVStorage is in node_modules.
Initialize a git repo with 'git init' before 'pod install' or add '--no-repo-update'
Update both React Native and MMKVStorage to compatible versions, run pod install again.