-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
add Statusbar marginTop for navTransparent #3212
Conversation
When using navTransparent feature, the headerStyle is removed causing the navbar to be obstructed by the Statusbar. This fix adds marginTop to the headerStyle to that the navbar is aligned below the Statusbar.
Do you mind showing how is that behaving on Android and iOS before and after? I am trying here and not being able to see the problem or to confirm that this change is not going to break anything else for other people. |
Also, could you check if |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. One interesting thing is this:
Constants
currentHeight (Android only) The height of the status bar.
* master: Add StatusBar marginTop for navTransparent (#3212)
Are we sure that this was an appropriate fix? My transparent header NavBar was positioned fine before this update and now it appears as if it is pushed down by 24px on Android. According to this other GitHub issue it appears I'm not the only one having this problem. Unfortunately since the headerStyle is overwritten for a |
@daviscabral This is not good.. navigation never affected other positions, If user want to status bar as absolute position, just use padding top in the scene |
When using navTransparent feature, the headerStyle is removed causing the navbar to be obstructed by the Statusbar.
This fix adds marginTop to the headerStyle to that the navbar is aligned below the Statusbar.