问题 I'm new with react-native and redux and I want to know how can I get the state updated after the dispatch... Follow my code: /LoginForm.js function mapStateToProps(state) { return { user: state.userReducer }; } function mapDispatchToProps(dispatch) { return { login: (username, password) => { dispatch(login(username, password)); // update state loggedIn } } } const LoginForm = connect(mapStateToProps, mapDispatchToProps)(Login); export default LoginForm; /Login.js ---Here I've a button which