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

The StatusBar barStyle in android5.1 is invalid #16827

Closed
Yiiu opened this issue Nov 15, 2017 · 7 comments
Closed

The StatusBar barStyle in android5.1 is invalid #16827

Yiiu opened this issue Nov 15, 2017 · 7 comments
Labels
Help Wanted :octocat: Issues ideal for external contributors. Platform: Android Android applications. Resolution: For Stack Overflow A question for Stack Overflow. Applying this label will cause issue to be closed. Resolution: Locked This issue was locked by the bot.

Comments

@Yiiu
Copy link

Yiiu commented Nov 15, 2017

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

@Mrshutao
Copy link

I have the same problem,have you resolved it ?

@Yiiu
Copy link
Author

Yiiu commented Nov 22, 2017

@Mrshutao I have not resolved,Had to change the statusbar translucent

@laszhiai
Copy link

@laszhiai
Copy link

laszhiai commented Jan 19, 2018

sb
override StatusBarModule#setStyle in native

@hramos hramos added Help Wanted :octocat: Issues ideal for external contributors. Resolution: For Stack Overflow A question for Stack Overflow. Applying this label will cause issue to be closed. Platform: Android Android applications. labels Mar 20, 2018
@wedneyyuri
Copy link

Maybe it's related to #16432 because it's not working:

<StatusBar translucent={false} />

@jeroenptrs
Copy link

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

@react-native-bot
Copy link
Collaborator

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.

@facebook facebook locked as resolved and limited conversation to collaborators May 7, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label May 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Help Wanted :octocat: Issues ideal for external contributors. Platform: Android Android applications. Resolution: For Stack Overflow A question for Stack Overflow. Applying this label will cause issue to be closed. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

7 participants