1.页面跳转
this.props.navigation.navigate("跳转页面的name",{key:value});
2.接收上个页面的值
var value = this.props.route.params.key;
1.页面跳转
this.props.navigation.navigate("跳转页面的name",{key:value});
2.接收上个页面的值
var value = this.props.route.params.key;
本文标题:React Native - 页面间传值
本文链接:https://www.haomeiwen.com/subject/osjoyrtx.html
网友评论