navigation 跳转
跳转传参
<Button title="ok" onPress={() =>
this.props.navigation.navigate('details', {
itemId: 86,
otherParam: 'anything you want here',
})} />
跳转后的页面 接收参数
console.log(this.props.route.params)
跳转传参
<Button title="ok" onPress={() =>
this.props.navigation.navigate('details', {
itemId: 86,
otherParam: 'anything you want here',
})} />
跳转后的页面 接收参数
console.log(this.props.route.params)