-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Modal component on Android is not underneath a translucent StatusBar, inconsistent with iOS #9090
Comments
Is this still a problem? I seem to recall @satya164 discussing some fix here but I could be mistaken. |
As far as I can tell, yes this is still a problem, as I believe I am dealing with something similar. My situation is that I have set the status bar to hidden at the root of my app, but when I am on android and display a modal the status bar becomes visible. On iOS the status bar remains invisible in this situation (the desired behavior for my application). Furthermore, I have my app in Immersive mode, and as such the soft navigation buttons (ie back, home, multitasking) are also hidden throughout the app. When a modal is displayed the navigation keys become visible, similar to the status bar. |
I can confirm this behaviour. |
0.43.0 here. I can confirm that there is still a bug when using modal with translucent status bar on android |
Yep, if i set my StatusBar to translucent its background just become black (my app don fit his space), and hidden it's not working (the background still green and StatusBar always visible) |
It's not a direct fix for this, but I fixed the related bug that causes the translucent StatusBar to darken when the Modal is opened on android. #13629 Wathever the fix for this bug is, it'll probably apply to the two files I was looking at while fixing that issue. |
Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally! If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution. |
This is still an issue for me, RN 0.49 |
Still an issue, 0.52.2 |
+1 |
3 similar comments
+1 |
+1 |
+1 |
I still have this issue and the |
+1 |
2 similar comments
+1 |
+1 |
+1 There seems to be a pr which deal with the hidden statusbar |
When you set
translucent
to true in aStatusBar
component in Android, then open aModal
component, theModal
children are not underneath the status bar like the main content. This is inconsistent to the behavior on iOS whereModal
children are underneath the status bar. Therefore as a workaround you need to add a style that looks something like this to the body of a modal:0.29.0
…and here is the code snippet copy/pasted from RNPlay (works on both iOS and Android):
iOS Modal closed
iOS Modal opened
Android Modal closed
Android Modal opened (ERROR HERE)
The text was updated successfully, but these errors were encountered: