We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"react-native-router-flux": "^4.0.0-beta.28", "react-native": "0.44.2", "redux": "^3.6.0",
How can I access a redux action (mapped in the scene via mapDispatchToProps) through the onEnter method?
I'm having trouble accessing a redux action through the onEnter method within the scene. I think it's because of the onEnter method being static.
class MyContainer extends Component { static onEnter() { setIsLoggedIn(); } ... ... ... ... const mapDispatchToProps = dispatch => ( { setIsLoggedIn: () => { dispatch(setIsLoggedIn()); }, } ); export default connect(null, mapDispatchToProps)(MyContainer);
The text was updated successfully, but these errors were encountered:
Hi! Is there any solution to this?
Sorry, something went wrong.
Please try to reproduce it with Example project and latest version 4.0.0-beta.40. Feel free to open if the issue still exists
No branches or pull requests
Version
"react-native-router-flux": "^4.0.0-beta.28",
"react-native": "0.44.2",
"redux": "^3.6.0",
Expected behaviour
How can I access a redux action (mapped in the scene via mapDispatchToProps) through the onEnter method?
Actual behaviour
I'm having trouble accessing a redux action through the onEnter method within the scene. I think it's because of the onEnter method being static.
Steps to reproduce
The text was updated successfully, but these errors were encountered: