🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

rn-mmkv-storage-flipper

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rn-mmkv-storage-flipper

Flipper plugin to see MMKV Storage actions

1.1.1
latest
Source
npm
Version published
Weekly downloads
12
-64.71%
Maintainers
1
Weekly downloads
 
Created
Source

React Native Flipper plugin for React Native MMKV Storage

Use this with my Flipper desktop plugin

gif

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

Requirement

react-native-mmkv-storage v0.8.0 or newer. Older versions (from 0.6.1 to 0.7.6) are compatible but some logs can't be shown

Install

yarn add react-native-flipper rn-mmkv-storage-flipper --dev

or

npm i react-native-flipper rn-mmkv-storage-flipper -D

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

Multiple MMKV Instances:

const MMKV1 = new MMKVLoader()
  .withInstanceID('test1')
  .withEncryption()
  .initialize();

const MMKV2 = new MMKVLoader()
  .withInstanceID('test2')
  .withEncryption()
  .initialize();

if (__DEV__) {
  mmkvFlipper([MMKV1, MMKV2]);
}

FAQ

My Android app crashes nonstop

This is known issus on Flipper. The workaround is keep Flipper opening while running app on debug mode, no crashes on release. Or run command below:

adb shell run-as "replace.this.with.your.app.id" rm -rf files/sonar

Keywords

flipper

FAQs

Package last updated on 30 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts