点击消息,this.props.navigator.push跳转无效,this.props.navigation.navigate('Push')会报错undefined is not an object(evaluating 'this.props.navigation.navigate')

GaGa_One
2019-07-19 04:18 274 0

版本:
"react-native": "0.55.4",
"react-native-navigation": "^1.1.474",
"jcore-react-native": "^1.3.2",
"jpush-react-native": "^2.5.3",
问题:
1、点击消息,使用this.props.navigator.push跳转无效
2、改成了 jumpSecondActivity () {
this.props.navigation.navigate('Page1')
}
会报错undefined is not an object(evaluating 'this.props.navigation.navigate')

1个回答

热门排序
  • GaGa_One
    2019-07-19 04:23

    跳转的是我自己定义的页面