Skip to content
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

StatusBar barStyle prop not working when dark-mode activated on iOS 13 beta. #26369

Closed
cuttlas opened this issue Sep 7, 2019 · 25 comments
Closed
Labels
Bug Component: StatusBar Platform: iOS iOS applications. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@cuttlas
Copy link

cuttlas commented Sep 7, 2019

On iOS 13 beta, I'm trying to change the style of the status bar using the StatusBar component, but it doesn't work when the System's Appearance is set to Dark. Note that it does work as expected when the System's Appearance is light.

React Native version: 0.59.1

Steps To Reproduce

  1. On iOS 13 beta, change the system's Appearance to Dark in Settings -> Developer.
  2. Try to set the barStyle prop on the StatusBar component to "dark-content":

<StatusBar barStyle="dark-content" />

Describe what you expected to happen:

I expect the color of status bar elements (battery, network...) to be black, but they remain white.

@mezod
Copy link

mezod commented Sep 7, 2019

we are experiencing the same issue

@tr3v3r
Copy link

tr3v3r commented Sep 9, 2019

Related pull request #25919

@AppleMango23
Copy link

i facing this issue too, cant change to "light-content"

@tr3v3r
Copy link

tr3v3r commented Sep 16, 2019

@nonoyek What we managed to do for now it just to adopt application to dark mode. I mean change light colors to dark and etc.

Also you may build your app using xcode version < 11. But in this way your app will not be able to support dark theme at all.

@wenkangzhou
Copy link

Has any progress?

@mashaole
Copy link

has there been any progress ? so far i just keep the background color of the status bar as dark so that if my app is in dark mode or light mode i can see the content

@AurangzaibRamzan
Copy link

+1

@cristianoccazinsp
Copy link
Contributor

+1

1 similar comment
@r1ckyrockz
Copy link

+1

@fonov
Copy link

fonov commented Oct 1, 2019

working solution #26619 (comment)

@stale
Copy link

stale bot commented Dec 30, 2019

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Dec 30, 2019
@WaveMeUp
Copy link

WaveMeUp commented Jan 5, 2020

Same problem here

@stale stale bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Jan 5, 2020
@seajean
Copy link

seajean commented Jan 14, 2020

Same problem here

@svenlombaert
Copy link

I upgraded to 0.62 and this issue seems resolved.

@DenisSokoloff
Copy link

I upgraded to 0.62 and this issue seems resolved.

image

A u from future? :)

@svenlombaert
Copy link

@DenisSokoloff yes I am.

On a serious note: upgraded to 0.61, and yes, it works 😉

@DenisSokoloff
Copy link

@DenisSokoloff yes I am.

On a serious note: upgraded to 0.61, and yes, it works 😉

I have "react-native": "0.61.5",
But in iOS I do not see changes from dark and light :(

@fedarenchyk
Copy link

@DenisSokoloff yes I am.
On a serious note: upgraded to 0.61, and yes, it works 😉

I have "react-native": "0.61.5",
But in iOS I do not see changes from dark and light :(

+1

@yastrebovb
Copy link

@DenisSokoloff yes I am.
On a serious note: upgraded to 0.61, and yes, it works 😉

I have "react-native": "0.61.5",
But in iOS I do not see changes from dark and light :(

Same issue.

@brunnohofmann
Copy link

Its happening to me as well. On Ios its working well. Im using Android 5 on simulator

@fedarenchyk
Copy link

Its happening to me as well. On Ios its working well. Im using Android 5 on simulator

I don't know why, but on Android 5 StatusBar.setBarStyle('dark-content/light-content') does not working. Android 6 and upper working correctly

@svenlombaert
Copy link

svenlombaert commented Feb 18, 2020

As the docs state (https://facebook.github.io/react-native/docs/statusbar) dark-content on Android is only working for Android API >= 23. That's Android 6 and above.

@xhirazi
Copy link

xhirazi commented Feb 27, 2020

follow to solve click here

@stale
Copy link

stale bot commented May 30, 2020

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label May 30, 2020
@stale
Copy link

stale bot commented Jun 6, 2020

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Jun 6, 2020
@facebook facebook locked as resolved and limited conversation to collaborators Jun 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Component: StatusBar Platform: iOS iOS applications. Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests