We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4653cad commit a90cb33Copy full SHA for a90cb33
src/Reducers/navigationReducer.js
@@ -2,7 +2,7 @@ import AppNavigator from '../Navigation/navigationStack'
2
const initialState = AppNavigator.router.getStateForAction(AppNavigator.router.getActionForPathAndParams('screen1'))
3
console.log(`*****NavState${JSON.stringify(initialState)}`);
4
const navigationReducer = (state = initialState, action) => {
5
- const newState = AppNavigator.router.getStateForAction(action)
+ const newState = AppNavigator.router.getStateForAction(action, state)
6
return newState || state;
7
}
8
0 commit comments