Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/Fausto95/rn-async-storage-flipper

React Native's Async Storage logger for Flipper
https://github.com/Fausto95/rn-async-storage-flipper

async-storage flipper flipper-plugin react-native

Last synced: 11 days ago
JSON representation

React Native's Async Storage logger for Flipper

Awesome Lists containing this project

README

        

# Async-Storage Flipper

![plugin](/images/flipper-as.png)

Async-Storage debugger for [Flipper](https://fbflipper.com/).

## Getting Started

1. Install these libraries in your react-native app.

```bash
yarn add rn-async-storage-flipper react-native-flipper
```

For iOS, you'll need to run

```bash
cd ios && pod install
```

2. Import the `rn-async-storage-flipper` library and pass as argument your storage instance.

```javascript
import RNAsyncStorageFlipper from 'rn-async-storage-flipper';

// ....
import AsyncStorage from '@react-native-community/async-storage';

// We recommend to invoke the function inside a componentDidMount or useEffect
RNAsyncStorageFlipper(AsyncStorage);
```

Note that you storage must have the following async methods:

- `getAllKeys`

- `multiGet`

3. Install the [flipper-plugin-async-storage](/packages/flipper-plugin-async-storage) in Flipper app

4. Re-run your app