How do react-navigation navigation bar buttons jump to the page?

The code for

react-navigation jump is this.props.navigation.navigate ("xxxxx"). I know that
but generally, the definition of navigationOptions is in static. If I define a headerRight, button, how can I write a jump statement in onPress? Static can"t get props.

ask the boss to solve the problem

Feb.27,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-7b78d9-29c3d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-7b78d9-29c3d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?