Desktop Flipper plugin for React Native MMKV Storage
- Show logs every time you interact with storage
- Edit value
* Tested on Flipper v0.152.0, React Native v0.68.2, RN MMKV Storage source code from github
Open Flipper and search on Plugin Manager
Install Flipper plug-in:
yarn add react-native-flipper rn-mmkv-storage-flipper --dev
or
npm i react-native-flipper rn-mmkv-storage-flipper -D
Update your code:
import {MMKVLoader} from 'react-native-mmkv-storage';
import mmkvFlipper from 'rn-mmkv-storage-flipper';
const MMKV = new MMKVLoader()
.withInstanceID('test')
.withEncryption()
.initialize();
if (__DEV__) {
mmkvFlipper(MMKV);
}
This is known issus on Flipper. The workaround is keep Flipper opening while running app on debug mode.