Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/lbaldy/flipper-plugin-async-storage-advanced

Flipper plugin for async storage, provides options to view/edit/delete/create async storage entries via Flipper.
https://github.com/lbaldy/flipper-plugin-async-storage-advanced

Last synced: 2 days ago
JSON representation

Flipper plugin for async storage, provides options to view/edit/delete/create async storage entries via Flipper.

Awesome Lists containing this project

README

        

# Flipper Async Storage Advanced plugin

## Introduction

This plugin is designed to work with Flipper (https://fbflipper.com/) and Async Storage (https://github.com/react-native-async-storage/async-storage) library.

The plugin provides standard read/write/delete/update operations on the Async Storage keys in React Native applications.

![plugin_video](images/output.gif "Plugin Video")

## Installation

Similarly to other Flipper plugins for React Native, this one comes in two packages.

### Client package

The first package is a client package that has to be installed in your React Native app.

#### Install the package

If you haven't already installed `react-native-flipper` you need to do it now.

Simply run:

`npm i react-native-flipper --save`

Once the react-native-flipper package is installed, you can go ahead and install the actual rn-flipper-async-storage-advanced package.

`npm i rn-flipper-async-storage-advanced --save`

Once the package is installed, simply import it

`import FlipperAsyncStorage from 'rn-flipper-async-storage-advanced';`

and include the component somewhere in you main component, example below adds it inside App.js

```
const App: () => Node = () => {
const isDarkMode = useColorScheme() === 'dark';

const backgroundStyle = {
backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
};

return (

<--- This line
{
AsyncStorage.setItem('sads', 'das');
}}>
add


);
};
```

### Flipper plugin

The second package is a plugin package that has to be installed from inside Flipper.

Open Flipper and find your plugin manager, simply search for 'flipper-plugin-async-storage-advanced' and install it.