Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Join Redux navigation middleware #273

Merged
merged 3 commits into from
May 21, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions boilerplate/App/Redux/CreateStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Config from '../Config/DebugConfig'
import createSagaMiddleware from 'redux-saga'
import ScreenTracking from './ScreenTrackingMiddleware'
import { createReactNavigationReduxMiddleware } from 'react-navigation-redux-helpers'
Copy link
Contributor

@bencergazda bencergazda May 20, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should remove the old createReactNavigationReduxMiddleware import and CI will be OK.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Already done

import { appNavigatorMiddleware } from '../Navigation/ReduxNavigation'

// creates the store
export default (rootReducer, rootSaga) => {
Expand All @@ -12,11 +13,7 @@ export default (rootReducer, rootSaga) => {
const enhancers = []

/* ------------- Navigation Middleware ------------ */
const navigationMiddleware = createReactNavigationReduxMiddleware(
'root',
state => state.nav
)
middleware.push(navigationMiddleware)
middleware.push(appNavigatorMiddleware)

/* ------------- Analytics Middleware ------------- */
middleware.push(ScreenTracking)
Expand Down