mirror of
https://github.com/status-im/react-native.git
synced 2025-02-05 14:13:26 +00:00
NavigationExperimental: Handle generic back action from stack reducer
Reviewed By: hedgerwang Differential Revision: D3036422 fb-gh-sync-id: 8cf454a76ddc14b5601e84dee1ae5aaf98060d5f shipit-source-id: 8cf454a76ddc14b5601e84dee1ae5aaf98060d5f
This commit is contained in:
parent
a611ec5f23
commit
b1090bfae1
@ -74,6 +74,7 @@ function NavigationStackReducer({initialState, getReducerForState, getPushedRedu
|
||||
return lastState;
|
||||
}
|
||||
switch (action.type) {
|
||||
case 'back':
|
||||
case 'BackAction':
|
||||
if (lastParentState.index === 0 || lastParentState.children.length === 1) {
|
||||
return lastParentState;
|
||||
|
Loading…
x
Reference in New Issue
Block a user