vonovak / react-native-theme-control

Natively control react native application theme at runtime and persist it for the next app start.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

michaelkremenetsky opened this issue · 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?

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

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

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