Skip to content

The StatusBar barStyle in android5.1 is invalid #16827

Closed

Description

@Yiiu

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

Activity

  1. Mrshutao commented on Nov 20, 2017

    @Mrshutao

    I have the same problem,have you resolved it ?

  2. Yiiu commented on Nov 22, 2017

    @Yiiu
    Author

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

  3. laszhiai commented on Jan 19, 2018

    @laszhiai
  4. laszhiai commented on Jan 19, 2018

    @laszhiai

    sb
    override StatusBarModule#setStyle in native

  5. added
    Help Wanted :octocat:Issues ideal for external contributors.
    Resolution: For Stack OverflowA question for Stack Overflow. Applying this label will cause issue to be closed.
    on Mar 20, 2018
  6. wedneyyuri commented on Apr 1, 2018

    @wedneyyuri

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

    <StatusBar translucent={false} />
  7. jeroenptrs commented on Apr 24, 2018

    @jeroenptrs

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

  8. react-native-bot commented on May 7, 2018

    @react-native-bot
    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.

  9. locked as resolved and limited conversation to collaborators on May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Help Wanted :octocat:Issues ideal for external contributors.Platform: AndroidAndroid applications.Resolution: For Stack OverflowA question for Stack Overflow. Applying this label will cause issue to be closed.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions