Created
May 18, 2016 16:10
-
-
Save callmephilip/661842ccc4c5a8564a28539d38e3fd85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default connect(mapStateToProps, mapDispatchToProps, (stateProps, dispatchProps, ownProps) => { | |
return Object.assign({}, ownProps, stateProps, dispatchProps, { | |
onNavigate: (action) => { | |
dispatchProps.dispatch(Object.assign(action, { | |
scope: action.scope || stateProps.navigation.key | |
})); | |
} | |
}); | |
})(Feed); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment