yarn react-native-mmkv 1.3.0
Release 1.3.0

latest releases: 3.0.2, 3.0.1, 3.0.0...
3 years ago

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

Reverts

  • Revert "link against libreactnativejni.so instead of compiling jsi.cpp ourself" (caa93ca)

Don't miss a new react-native-mmkv release

NewReleases is sending notifications on new releases.