Return the result of dispatch from helpers. Fixes #4445

This commit is contained in:
Brent Vatne
2018-06-06 21:01:51 -07:00
parent be9dd85b1b
commit 518fc0df5c

View File

@@ -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 = {