Currently, I am in the process of developing an app using React-Native for the first time. While working on this project, I encountered an issue.
In my navigation setup, I have three main options.
The first option is my main home screen where I want to hide the header by using headerMode: 'none'
.
The second option is a drawer where I manually created a custom header and also set headerMode: 'none'
to hide the default header.
From the drawer, I navigate to other pages (let's call one of them Page A), which should display headers. These pages have headerMode: 'screen'
in their navigationOptions setting.
The problem arises when I move from the login page to Page A; the header is present but lacks a back button functionality.
If I modify the first navigation's header mode from null to screen, it adds a fully functioning header with a back button, but then the second header appears as well. If you are having trouble understanding my issue, please refer to the link provided above.