Getting undefined is not an object evaluating _this.props.navigation

前端 未结 13 1727
说谎
说谎 2020-12-14 15:19

I\'m using DrawerNavigator and I have 3 pages: Router page, mainScreen and a photos page,
I maked a header navbar are

13条回答
  •  南笙
    南笙 (楼主)
    2020-12-14 15:39

    In then compnent that you're trying enter to another view you must send the object navigation by you use this in the onPress of component imported

    example

    Implementing component in a view

    Component template

提交回复
热议问题