react-native-mmkv 3.0 is stable as a pure C++ TurboModule
updated
Version 3.0.0 of react-native-mmkv has been released as stable. V3 is a complete rewrite of the library's codebase into a pure C++ TurboModule, which the release notes say has better startup speed. iOS and Android now share a single codebase for consistency.

react-native-mmkv 3.0.0 requires react-native 0.74 or higher.
Features
- Full rewrite to a single pure C++ / CxxTurboModule.
- New
trim()function andsizeproperty. - Breaking:
getBuffernow usesArrayBufferinstead ofUint8Array. - Breaking: errors are now properly thrown if
setorrecryptfail. - Support for AppGroups.
- Automocking in vitest.
- Support for 16KB page size on newer Android phones.
Bug fixes
- Encryption now works on keys longer than 10 characters.
- Only C++ bindings are generated, skipping Java/ObjC.
- The library now always calls
trim, andWeakRefhas been removed. - Only Warnings or Errors are logged in Release.
- An error is thrown if TurboModules are not found.
- The TurboModule is initialized eagerly because Proxies are slow.
Performance
Being a CxxTurboModule is described as faster with less initialization overhead and complexity. The memory cache is also cleared on trim and in the destructor.
Links
Source: github.com