Sep 6, 2018 · 1 min read
You can import from your navigator on store/index.js
import { navReducer, middleware } from ‘navigation’;
And then pass to:
const store = configureStore(rootReducer, rootSaga, middleware);
Inside of configureStore, I have:
…
export default (rootReducer, rootSaga, rootNavigation) => {
…
/* Navigation */
middleware.push(rootNavigation);
So, in other words, I passed middleware, but in the configureStore I called it rootNavigation.
Hope it helps.