-
Notifications
You must be signed in to change notification settings - Fork 622
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
The statusbar turns white when the modal is open (only on certain devices) #50
Comments
Hey @nidaorhan, could you try replacing |
Yes, I tried, no issues with the React-Native built in modal |
Sorry for being late, I was on holiday. |
Closing, feel free to create a new issue if needed 👍 Also, please be aware that I created the following "new issue template" that, if followed correctly, will speed up a lot the issue resolution: When reporting a bug, please be sure to check if the issue still persists with react-native original modal:Under the hood When reporting a bug, please be sure to include the following:
When you open an issue for a feature request, please add as much detail as possible:
Please note by far the quickest way to get a new feature is to file a Pull Request. |
Hi, i am also dealing with a similar issue When i open my modal i want the Status bar to still be there to keep consistency in the app but when the modal shows the status bar hides. But since the rest of the app is designed to be below the status bar only a white bar is shown in the status bars place. I tried changing back to the react-native original modal component and the status bar did not hide(animate away upwards). I hope i have supplied you with enough information to help me, otherwise i'll do my best to try to explain my issue further. Kind regards Edit: This issue does not appear on API 19 and 25 and i am in progress of testing on more devices |
@kallrobin thanks a lot, I'm re-opening the issue, could you please provide a bit more info on the subject? |
+1 |
I'm dealing with the same issue in RN0.48. |
Guys, could you please provide the info I asked above? |
What device are you using?
What navigation library are you using? Note
it works properly. Seems like is SO version related. |
@EnriqueDev that's exactly what I suspected :( |
Hi! |
That's weird, I'm not having the issue on the N5 on simulator... |
Wow. That's strange! |
Hey Guys, I had same problem. I just put this |
@gasparteixeira where exactly do you pass these props? |
@Stophface in the |
@mmazzarolo and @Stophface I put it in
|
Can anyone confirm @gasparteixeira solution? |
@mmazzarolo doesn't seem to work. |
Might be related to this issue |
@gasparteixeira I understand why that seems to work. But it's not fixing the issue really. |
@kallrobin you right! I made an "ugly" solution. It worked for me and maybe it was not the right way.... I also did another weird thing. I set the background transparent and declare a View with background color inside this! |
@gasparteixeira Would you mind sharing your "working" code? |
Hello @Norfeldt Please check out this experience on github:
To scan my "working" code here is the expo link: |
Can be fixed with facebook/react-native#7474 (comment) |
Just use the portal branch of this modal ;) |
the issue still react native 0.59.9 |
A possible work around... Then inside the modal with the StatusBar component I assigned the background color with the previous value.
And... voilá. It's not perfect when it comes to open and close transition, but far better than all white status bar in my opinion. P.S. |
Possible workaround:
Modal works just like native in this case (If i'm not missing something) |
perfect! |
a perfect one |
Has any progerss? |
In my case, the solution was to use the
|
@viktor992 thanks, it's work for me |
Didn't work for me :( |
<Modal ... statusBarTranslucent>...</Modal> I think this problem has been solved. :) |
Thanks, it works for me. |
How did I miss that? Thanks bro. |
Anyone experiencing this? |
@rayj10 have you found a solution for the problem? |
|
<StatusBar backgroundColor={visibleModal? "rgba(0,0,0,0.7)": 'transparent'} barStyle={visibleModal ? 'light-content' : 'dark-content'} /> |
this works for me Thanks |
Hi, there. Is there any way to hide the statusbar in modal? Thanks. |
Hi there. ` <Modal
|
Thank you, it's helpful :) |
Unbelievable this was the solution . Unbelievable i was searching for 1.5 year i love you !!! I will cry lol I have no words no joking . I am giving you a full example guyz:
As you can see no status bar anymore !!!!!!! |
You will find some problems though if you stuck 2 modals on top of each other etc so you have to be careful with the above solution . |
@cocoa-1012 |
When using statusBarTranslucent then also in some devices it has some weird gap at the top and bottom of the phone screen and the background is visible. Any final solve for this issue? |
|
|
|
I have a component with status bar set to hidden like this:
When the modal is visible, status bar is hidden but instead there is an empty white block at the top with the exact height of the status bar:
react-native : 0.45.1
react-native-moda l: 2.5.0
android : 5.1.1
The text was updated successfully, but these errors were encountered: