-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
How to Hide header #1534
Comments
static navigationOptions = { |
@bktoky i have done that to hide the TITLE: XXX header. however, i wish to either
|
have you tried headerMode: 'none' as option of StackNavigator? |
I'm using the StackNavigator and
I think the documentation there is a little misleading as:
means at least in my opinion that no header will be displayed. So it doesn't make any sense to render the grey block where the header would be placed. But furthermore:
Clearly says that the header will be hidden. |
is there a way to do it programmatically? nevermind i just make the control on the header height and set it to 0 when i dont need it and then the null on hte header left and right if needed ...if there's an easier way im open ot suggestions |
@jaycee425 You can do it programmatically with the following code:
And then you can set the state params with this:
Although I haven't tried the code myself and I'm not sure if something like the HeaderView is accessible for the public api in react-navigation and if there is a content property on that. But I think in an abstract way, this is how you set it programmatically. |
I want to hide the navigation bar when showing my searchBar, so I do the following:
This works fine on iOS, but on Android, I get a blank header above my UI. Any ideas? |
Hi! In an effort to get the hundreds of issues on this repo under control I'm closing issues tagged as questions. Please don't take this personally - it's simply something we need to do to get the issues to a manageable point. If you still have a question I encourage you to re-read the docs, ask on StackOverflow, or ask on the #react-navigation Reactiflux channel. Thank you! |
static navigationOptions = { header: null }; this works for me, "react-navigation": "^2.0.4" |
Hi as you can see I have 3 very ugly headers.
How it works is the main header "EVENTS & ANNOUNCEMENTS" is under a drawer navigator from
sidebar.js
by clicking on each item drawer, it will open up a screen, and in this case a view with 2 tabs (the blue tabs)
eventTabs.js
SO WHEN i click on each listitem, it will open up another screen with the header. currently. I have hidden the TITLE: PULSE EVENT header., but i was wondering is there a way to set "EVENTS & ANNOUNCEMENTS to the listitem title?
or
to hide sidebar.js header and enforce a the current screen's EventStack navigator header?
Inside ``eventTabs.js`:
The text was updated successfully, but these errors were encountered: