Skip to content

Styling Android status bar #224

@jenskuhrjorgensen

Description

@jenskuhrjorgensen

Hi
I think it should be possible to style the Android status bar through your great navigation bar component.

I don't understand why it is only possible to style the iOS status bar style: (from react-native-navbar)

customizeStatusBar() {
  const { statusBar } = this.props;
  if (Platform.OS === 'ios') {
    if (statusBar.style) {
      StatusBar.setBarStyle(statusBar.style);
    }

    const animation = statusBar.hidden ?
      statusBar.hideAnimation : statusBar.showAnimation;

    StatusBar.showHideTransition = animation;
    StatusBar.hidden = statusBar.hidden;
  }
}

Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions