Created
August 15, 2021 06:03
-
-
Save YajanaRao/4b99c1997b63f6c9a6ea433fedc6fb83 to your computer and use it in GitHub Desktop.
Redux Flipper configuration for react native flipper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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