Skip to content

Release 1.3.0

Choose a tag to compare

@mrousavy mrousavy released this 04 Sep 15:17

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)