From 174da4271b929238ea285cf9a71d9bba633fbfda Mon Sep 17 00:00:00 2001 From: dseipp Date: Sat, 27 Jan 2018 12:45:11 -0500 Subject: [PATCH] resolves issues when using stack and drawer navigators for more information see this: react-navigation/react-navigation#1919 (comment) --- src/reducers/navigationState.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/reducers/navigationState.js b/src/reducers/navigationState.js index c485950..d4962e8 100644 --- a/src/reducers/navigationState.js +++ b/src/reducers/navigationState.js @@ -8,6 +8,8 @@ export default (state = null, action) => { const {initialRoute, type} = action.payload; const navigator = getNavigator(type); + let initialNavState = navigator.router.getStateForAction(NavigationActions.init()); + // the tab navigator decides to put a bunch of child actions on this that we don't want, so truncate those const actionForPath = navigator.router.getActionForPathAndParams(initialRoute); delete actionForPath.action;