How To Call Actions.xxx In Functions Binded To Onpress Event In 'react-native-router-flux'
I'm using RN0.24 and flux3.26. RN version may be out-dated but the Actions.xxx works fine when I'm using onPress={Actions.xxx} However once I put it into functions like onPress={th
Solution 1:
This is a this
issue, I think you can try:
render() {
constlogin = () => { Action.login() }
return (
<Viewstyle={styles.container}><Textstyle={styles.welcome}onPress={login }>
Go to Login
</Text></View>
);
}
}
Hope this can he helpful.
Post a Comment for "How To Call Actions.xxx In Functions Binded To Onpress Event In 'react-native-router-flux'"