An extremely fast, small mobile key-value key/value storage library for React Native. ~30x faster than AsyncStorage!
1. Install and import the library.
# NPM
$ npm i react-native-mmkvimport { MMKV } from 'react-native-mmkv';
2. Set & get storage.
// set
MMKV.set('site.name', 'VueScript');
MMKV.set('is-vue', true);// get
const sitename = MMKV.getString('site.name')
const isVue = MMKV.getBoolean('is-vue')
3. Get all keys.
const keys = MMKV.getAllKeys()
4. Delete an entry.
MMKV.delete('site.name')
Author: mrousavy
Live Demo: View The Demo
Download Link: Download The Source Code
Official Website: https://github.com/mrousavy/react-native-mmkv
License: MIT