fix: only propagate navigate to children

This commit is contained in:
satyajit.happy
2019-06-13 10:28:04 +02:00
parent 336482e972
commit b58ea0ebeb
4 changed files with 26 additions and 9 deletions

View File

@@ -228,6 +228,10 @@ const StackRouter: Router<CommonAction | Action> = {
};
},
shouldActionPropagateToChildren(action) {
return action.type === 'NAVIGATE';
},
shouldActionChangeFocus(action) {
return action.type === 'NAVIGATE';
},

View File

@@ -151,6 +151,10 @@ const TabRouter: Router<Action | CommonAction> = {
};
},
shouldActionPropagateToChildren(action) {
return action.type === 'NAVIGATE';
},
shouldActionChangeFocus(action) {
return action.type === 'NAVIGATE';
},