Skip to content

Instantly share code, notes, and snippets.

@YajanaRao
Created August 15, 2021 06:03
Show Gist options
  • Save YajanaRao/4b99c1997b63f6c9a6ea433fedc6fb83 to your computer and use it in GitHub Desktop.
Save YajanaRao/4b99c1997b63f6c9a6ea433fedc6fb83 to your computer and use it in GitHub Desktop.
Redux Flipper configuration for react native flipper
import { createStore, applyMiddleware } from "redux";
const middlewares = [
/* other middlewares */
];
if (__DEV__) {
const createDebugger = require("redux-flipper").default;
middlewares.push(createDebugger());
}
const store = createStore(RootReducer, applyMiddleware(...middlewares));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment