-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
fix: Fix android statusbar translucency #374
fix: Fix android statusbar translucency #374
Conversation
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 to me, thanks! I'll let @vikrantnegi review if he sees this, or else I'll merge this in 2d.
@DragonSpirit Hey, I just reviewd the PR on my Android and unfortunately it is not seems to working as expected. However, when I added
|
@vikrantnegi I am not sure it's correct way for light-based theme devices. Main point is disable transparency from statusbar. Can you attach screenshot for check difference? |
Good point. But we can always update the bar style as per the app theme like this:
I implemented this in one of my expo apps. Here is the screenshots before and after adding the |
@vikrantnegi, thank you for research. But I think theme feature for statusbar should be implemented in #320. Use force dark-content can break iOS dark theme. |
@DragonSpirit Using |
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.
Use force dark-content can break iOS dark theme.
I believe @vikrantnegi is actually correct. By default the light theme is used everywhere (see here), so we can just put <StatusBar barStyle="dark-content">
and it should be enough.
In the future, after #320, we can enable automatic dark/light detection and add a piece of code similar to #374 (comment)
Thanks a lot @DragonSpirit and @vikrantnegi! |
Sup!
This PR should fix transparency issue from #321. It would be great if @vikrantnegi or anybody else can check this.