Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/muchobien/flipper-plugin-react-native-mmkv

Plugin to control react-native-mmkv from Flipper
https://github.com/muchobien/flipper-plugin-react-native-mmkv

flipper flipper-plugin mmkv react-native react-native-mmkv

Last synced: 3 months ago
JSON representation

Plugin to control react-native-mmkv from Flipper

Awesome Lists containing this project

README

        

# Flipper plugin for [react-native-mmkv](https://github.com/mrousavy/react-native-mmkv)

This plugin allows you to control react-native-mmkv from flipper

## Usage

### Install the flipper plugin.

Simply search for 'react-native-mmkv' in the `Plugin Manager` in Flipper.


install plugin

### In your react-native App

```sh
yarn add -D react-native-flipper
yarn add react-native-mmkv-flipper-plugin
```

```ts
import { MMKV } from "react-native-mmkv";
import { initializeMMKVFlipper } from "react-native-mmkv-flipper-plugin";
const storage = new MMKV();

// add this line inside your App.tsx
if (__DEV__) {
initializeMMKVFlipper({ default: storage });
}
```

## Screenshot

![view](./.github/img/flipper.png)