wix / react-native-navigation

A complete native navigation solution for React Native
https://wix.github.io/react-native-navigation/
MIT License
13.04k stars 2.67k forks source link

StatusBar is not blurring on iOS #7185

Closed fadinasr closed 3 years ago

fadinasr commented 3 years ago

🐛 Bug Report

The status bar is covering and conflicting with the content of the screen. We need to blur the status bar on iOS so it appears above the content of the screen.

Have you read the Contributing Guidelines on issues?

Yes

To Reproduce

  1. Added blur option to navigation default options
  2. Tested with other options and on Android
  3. Tried upgrading to the latest version

Expected behavior

The StatusBar should be blurred or have a background color. Background color can only be used on Android, so we need the blur feature on iOS so we overlay the status bar with a blurred background to not conflict with screen content.

Actual Behavior

Nothing is being changed on iOS when we enable the blur option

Your Environment

Reproducible Demo


Navigation.events().registerAppLaunchedListener(async () => {
  await Navigation.setDefaultOptions({
    statusBar: {
      visible: true,
      blur: true
    },
   ....
  })
}
yogevbd commented 3 years ago

It isn't supported by apple and it sounds like you need to use a SafeAreaView in order to avoid that UI conflict you have. Could you please attach a screenshot?

https://developer.apple.com/design/human-interface-guidelines/ios/bars/status-bars/

fadinasr commented 3 years ago

I disagree with that completely as Apple provides you with an option to blur the status bar right off the bat. You can find the developer guide here https://developer.apple.com/documentation/uikit/uiblureffect

Screen Shot 2021-07-14 at 6 42 52 PM

Plus, the default status bar is colored with the system color (white or black) if you create a native iOS application

yogevbd commented 3 years ago

Oh I totally missed that. We will address this soon.

fadinasr commented 3 years ago

@yogevbd is that released or not yet? I've upgraded to 7.18.1 and it's still not working.