1.3.0 (2021-09-04)
⚠️ BREAKING CHANGE ⚠️
This version of MMKV comes with a completely redesigned API and contains three major features:
- 🎉 Support for multiple instances, e.g. to separate a logged in user's data from the global app data
- 🎉 Support for Encryption!
- 🎉 Support for custom paths!
Old API
import { MMKV } from 'react-native-mmkv'
MMKV.set('name', 'Marc')
MMKV.getString('name') // --> 'Marc'
New API
import { MMKV } from 'react-native-mmkv'
const storage = new MMKV()
storage.set('name', 'Marc')
storage.getString('name') // --> 'Marc'
Features
- Support multiple instances (#127) (d9b422c)
- Support encryption (#127) (d9b422c)
- Support custom path (#127) (d9b422c)
- Redesign (#127) (d9b422c)
Reverts
- Revert "link against
libreactnativejni.so
instead of compiling jsi.cpp ourself" (caa93ca)