Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Desktop Flipper plugin for React Native MMKV Storage

License

Notifications You must be signed in to change notification settings

pnthach95/flipper-plugin-react-native-mmkv-storage

Repository files navigation

This repository is archived as Flipper is removed from React Native 0.74

Desktop Flipper plugin for React Native MMKV Storage

Features

  • Show logs every time you interact with storage
  • Edit value

gif

* Tested on Flipper v0.152.0, React Native v0.68.2, RN MMKV Storage source code from github

Install

Open Flipper and search on Plugin Manager

manager

On your React Native project

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);
}

FAQ

My Android app crashes nonstop

This is known issus on Flipper. The workaround is keep Flipper opening while running app on debug mode.