question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The StatusBar barStyle in android5.1 is invalid

See original GitHub issue

Is this a bug report?

yes

Have you read the Contributing Guidelines?

yes

Environment

Environment: OS: macOS Sierra 10.12.6 Node: 8.4.0 Yarn: 1.0.0 npm: 5.3.0 Watchman: 4.9.0 Xcode: Xcode 9.0.1 Build version 9A1004 Android Studio: 2.3 AI-162.4069837

Packages: (wanted => installed) react: 16.0.0 => 16.0.0 react-native: 0.50.3 => 0.50.3

Steps to Reproduce

demo1:

<StatusBar barStyle="dark-content" />

demo2:

<StatusBar barStyle="light-content" />

Expected Behavior

I want demo1 status bar text color to white, demo2 status bar text color is black, but it is invalid in android5.1, the status bar text color is always white.android6.0 is ok. I do not know what to do.

Actual Behavior

is android5.1.

I change barStyle and the color of the status bar is always white.

demo:

demo1 demo2

Reproducible Demo

Need android5.1, no demo

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:7

github_iconTop GitHub Comments

7reactions
react-native-botcommented, May 7, 2018

This issue looks like a question that would be best asked on StackOverflow.

StackOverflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only.

Will close this as this is really a question that should be asked on StackOverflow.

0reactions
jeroenptrscommented, Apr 24, 2018

Yeah nothing is happening when I set translucent to true or false

Read more comments on GitHub >

github_iconTop Results From Across the Web

the barStyle="dark-content" of the statusBar does not work on ...
barStyle is iOS only prop so there is no possibility to change status bar on android with this method. You can use backgroundColor...
Read more >
cordova-plugin-statusbar
StatusBarStyle (status bar style, defaults to lightcontent). ... The Android 5+ guidelines specify using a different color for the statusbar than your main ......
Read more >
StatusBar - Expo Documentation
Set the bar style of the status bar. Returns. void.
Read more >
Statusbar - Supported Plugins - Ionic.io
The Status Bar plugin provides the ability to customize the appearance of the native mobile status bar, including setting visibility, background color, ...
Read more >
Dynamic Status Bar Color (iOS & Android) in Xamarin ...
Have you been looking to get total control of that status bar on iOS/Android in your app? Changing the color and the tint...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found