React-Native Navigator-this.props.navigation....

react

render() {

return (

<View>

<Text>2</Text>

<Button

title = "跳转到指定的页面"

onPress = {() => this.props.navigation.push('Profile')}

/>

<Button

title = "跳转到指定的页面"

onPress = {() => this.props.navigation.navigate('Home')}

/>

<Button

title = "返回上一个页面"

onPress = {() => this.props.navigation.goBack()}

/>

<Button

title = "返回第一个页面"

onPress = {() => this.props.navigation.popToTop()}

/>

</View>

)

}

  

以上是 React-Native Navigator-this.props.navigation.... 的全部内容, 来源链接: utcz.com/z/382641.html

回到顶部