Repository navigation
Using Modal in an app with status bar hidden = true results in status bar being shown #8627
Description
Activity
Please mention your React Native version and platform.
react-native-cli: 0.2.0
react-native: 0.24.1
platform: android
dev platform: macOSXreproducible????
Can you also post a screenshot? Are you referring to the grey line at the top?
the status bar
I think the
StatusBaronModalcan't be controlled and will be a blur one on Android right now.
I remembered there was a PR to add support fortranslucentStatusBartoModalbut caused test fail, then the PR was not shipped eventually, around 0.27-0.28Well I noticed that you are using RN0.24, so the
StatusBaronModalwill always gray and can't be controlled, after 0.28( or 0.27) it will be a translucent one but still can't make it transparentHere it is #7157 it was introduced in 0.27
cc @jemise111
@satya164 do you work for 24 hours a day... find you at any time and everywhere, it's crazy
@nihgwu Haha. I try to be online when I can :D
actually for this issue, there are two different
StatusBar, turn on the hidden prop will hide theStatusBaron theViewunder theModal, the showingStatusBaris onModaland can't be controlled or hidden before RN0.27.
so it's not an issue for the newest version@nihgwu Sorry, I've no context on the code.
Ohk so versio issue I guess
@nihgwu I'm having the same issue with RN0.32.0.
I have a view that hides the status bar and opens aModal.
The Modal shows the status bar.
You said it's not an issue after RN0.27.0 - what did you mean? Can I control the status bar for the modal view somehow?
Thanks@kfiroo I've explained #8627 (comment) those are two different StatusBar on View an Modal, you can't control the StatusBar on Modal right now
Reacted by nomakuri, Travis Nuttall, Tofugrass, Siddharth Ramesh, Tankerx, Douglas Nassif Roma Junior, Zach Nolan and Richard Jiang@nihgwu Ok, I thought you meant that there is a way after RN27 :)
Thanks!Just go to styles.xml of android/app/src/main/res/values/styles.xml and put this code in Base application theme
`
<style name="AppTheme" parent="Theme.ReactNative.AppCompat.Light.NoActionBar.FullScreen"> </style>`
After putting code, remove generated folders from android/app/build/generated folder and again do
react-native run-android . It will workReacted by EugeneGlazkov, Jason Zhao and thambtI am still facing the same issue. Is there any react-native solution.
@ShaikhKabeer thanks man!. U save me.
- locked as resolved and limited conversation to collaborators
on May 24, 2018 - addedResolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
on Jul 19, 2018


Bug?