React Navigation Header in Functional Components with Hooks

Posted by Jessica Taylor | Updated on

React Navigation Header in Functional Components with Hooks. navigationOptions can be a function that gets an object as argument with navigation as a property.

You also need to make sure you give a function to onPress, and that you don’t invoke navigation.navigate directly.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers