react-native-navbar icon indicating copy to clipboard operation
react-native-navbar copied to clipboard

Styling Android status bar

Open jenskuhrjorgensen opened this issue 8 years ago • 0 comments

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

jenskuhrjorgensen avatar Jun 15 '17 07:06 jenskuhrjorgensen