mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-12 09:21:09 +08:00
Return the result of dispatch from helpers. Fixes #4445
This commit is contained in:
@@ -41,7 +41,7 @@ function createNavigator(NavigatorView, router, navigationConfig) {
|
||||
actionHelpers[actionName] = (...args) => {
|
||||
const actionCreator = actionCreators[actionName];
|
||||
const action = actionCreator(...args);
|
||||
dispatch(action);
|
||||
return dispatch(action);
|
||||
};
|
||||
});
|
||||
const childNavigation = {
|
||||
|
||||
Reference in New Issue
Block a user