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
Menu