Skip to content

Instantly share code, notes, and snippets.

@lucasfernandes
Created June 23, 2018 00:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucasfernandes/6cbd8058d5ed6d62e488f7ce04f71b78 to your computer and use it in GitHub Desktop.
Save lucasfernandes/6cbd8058d5ed6d62e488f7ce04f71b78 to your computer and use it in GitHub Desktop.
const rootReducer = combineReducers({
nav: navReducer,
});
...
const store = configureStore(rootReducer, rootSaga, middleware);
...
/* Navigation */
middleware.push(rootNavigation);
enhancers.push(applyMiddleware(...middleware));
createStore(rootReducer, compose(...enhancers));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment