Skip to content

Commit a90cb33

Browse files
committed
bug fixed in navReducer
1 parent 4653cad commit a90cb33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Reducers/navigationReducer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import AppNavigator from '../Navigation/navigationStack'
22
const initialState = AppNavigator.router.getStateForAction(AppNavigator.router.getActionForPathAndParams('screen1'))
33
console.log(`*****NavState${JSON.stringify(initialState)}`);
44
const navigationReducer = (state = initialState, action) => {
5-
const newState = AppNavigator.router.getStateForAction(action)
5+
const newState = AppNavigator.router.getStateForAction(action, state)
66
return newState || state;
77
}
88

0 commit comments

Comments
 (0)