跳轉(zhuǎn)頁(yè)面帶上??onGoBack: () => this.refresh(),
onLogon() {
? ? ? ? const { navigation } = this.props
? ? ? ? navigation.navigate('Login',{
? ? ? ? ? ? onGoBack: () => this.refresh(),
? ? ? ? })
? ? }
refresh(){
? ? ? ? // alert('哈哈,老子返回刷新了這個(gè)頁(yè)面')
? ? }
跳轉(zhuǎn)成功并返回上一頁(yè)的時(shí)候
this.props.navigation.state.params.onGoBack();
this.props.navigation.goBack()