You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// these are not working
// this.rightTitle = this.rightTitle.bind(this);
// rightTitle = rightTitle.bind(this);
static rightTitle = () => {
const { shareForm: { ui: { fetching } } } = this.props;
if (fetching) {
return <ActivityIndicator color={colors.greeny_blue}/>
} else {
return <Headline style={styles.navButton}>
<Message id='ShareForm_Details_CTA' />
</Headline>
}
}
Actual behaviour
undefined is not an object '_this2.props.shareForm'
The text was updated successfully, but these errors were encountered:
ptquang86
changed the title
How to access props inside onRight static function?
How to access props inside rightTitle/onRight static function?
Aug 31, 2017
Version
Expected behaviour
Actual behaviour
undefined is not an object '_this2.props.shareForm'
The text was updated successfully, but these errors were encountered: