Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/zrg-team/flipper-rn-redux-inspector-plugin

A flipper plugin support inspect redux state and action logs for react-native
https://github.com/zrg-team/flipper-rn-redux-inspector-plugin

Last synced: 17 days ago
JSON representation

A flipper plugin support inspect redux state and action logs for react-native

Awesome Lists containing this project

README

        

## Hi developers feel free to make it great. **

### About

A **flipper plugin** support inspect **redux** state and action logs for **react-native**

Dependencies:
+ react-native-flipper
+ [rn-redux-middleware-flipper](https://github.com/zrg-team/rn-redux-middleware-flipper)
+ [flipper-plugin-rn-redux-inspector](https://github.com/zrg-team/flipper-rn-redux-inspector-plugin)

![demo](https://github.com/zrg-team/flipper-rn-redux-inspector-plugin/blob/master/images/demo.png?raw=true "Demo plugin")

### Installation
#### 1. install flipper redux middleware to your application

```npm install rn-redux-middleware-flipper react-native-flipper```

Make sure **react-native-flipper** is installed properly if not using autolinking.

#### 2. Setup redux middleware
Register the redux middware and connect to flipper. **rn-redux-middleware-flipper**

```javascript
if (__DEV__) { // eslint-disable-line
const createFlipperMiddleware = require('rn-redux-middleware-flipper').default
middlewares.push(createFlipperMiddleware())
}
```

#### 3. Flipper desktop app
Manage Plugins -> Install Plugins -> Search for ```flipper-plugin-rn-redux-inspector```

### Example

[Spiderum application](https://github.com/zrg-team/rn_spiderum)