react-native-theme-control icon indicating copy to clipboard operation
react-native-theme-control copied to clipboard

Ability to update Statusbar immediately on IOS `UIViewControllerBasedStatusBarAppearance: true`

Open michaelkremenetsky opened this issue 2 years ago • 3 comments

Hello, this is by far the best solution I've come across for dealing with theming.

I have an issue though on IOS. When I set UIViewControllerBasedStatusBarAppearance: true in the expo config I can no longer use SystemBars to update the status bar when changing the theme, because the status bar becomes handled by native iOS. It is however updated when I restart the app. Is there any way to refresh it programmatically?

michaelkremenetsky avatar Sep 12 '23 22:09 michaelkremenetsky

Hello and thanks for asking, I'm afraid you can control the status bar only if you set UIViewControllerBasedStatusBarAppearance as NO.

vonovak avatar Sep 13 '23 07:09 vonovak

Unfortunate as UIViewControllerBasedStatusBarAppearance: false breaks a lot of things for me such as model transitions

michaelkremenetsky avatar Sep 13 '23 07:09 michaelkremenetsky

I was able to get the status bar to change using expo-system-ui but it seems to prevent it from changing status style using react-navigation such as when I open a model

michaelkremenetsky avatar Sep 13 '23 07:09 michaelkremenetsky