-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide white header with back button on top of SideBar? #5
Comments
@maartenvandillen In react navigation sometimes predefined headers are appended. You could remove these headers by moving over to the parent router component and passing the prop
|
@Jasbir23 Thanks for your reply. I've tried your suggestion on all navigators and the SideBar itself but the only thing that removes the header is putting headerMode: 'none' on the main stack navigator. A consequence of that is that all screens lose their header and I'll have to put a header component in the render method of each. If that solves this issue I think I can live with that. If you have any other suggestion please let me know. |
@maartenvandillen You could try changing the version of react navigation from your package.json and rebuild. I did not have this issue with my app as you can see in the GIF, the header does not show up in the sidebar. |
it's working now. I had to use the right combination of header values of false, none and float in all navigators involved. Thanks for your time! |
By doing this solved my problem |
I am still facing this issue. None of the solution worked for me. |
@gupta-ji6 here is my index.js folder:
that solved my problem |
@rassemdev ^^ this worked for me.. I just set the navigationOptions for my drawer stack.Drawer.navigationOptions = {
|
Hi,
I'm trying to incorporate your example in my own app. Everything works fine, but after opening the side bar menu I see a white header with an arrow back button at the top of the screen, above the side bar. Where is this coming from and how can I remove it? I'd like to keep seeing my own custom header of the screen underneath the drawer.
PS: Images at the top of the SideBar are missing because I disabled them
Thanks!
The text was updated successfully, but these errors were encountered: