-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(iOS) UIViewControllerBasedStatusBarAppearance must be NO for SingleScreenApp #2944
Comments
Closing this. A component I included was using the StatusBar component triggering this error. Not a fault of RNN, sorry! |
Yeah, I have similar issue, with Picker in native-base, how did you solve that? |
Just a note for those using native-base with the above conflict. You can set iOS (limited colors) and Android status bar color using the Header component: https://docs.nativebase.io/Components.html#header-def-headref |
I was using the |
Installed empty RN project. Add react-native-navigation as in guide. Got an error. Field were set to true during installation of library. |
@MadaShindeInai you should just remove |
Sounds like you can get this error after the RNN installation that sets this UIViewControllerBasedStatusBarAppearance from false to true. This is still an issue IMO. The idea that you have to choose between React Native Navigation and the StatusBar component from react-native is not ideal. Especially if this error pops up when someone does a fresh install of RNN on a new RNN project which has the StatusBar component in the example. After checking the documentation, it does say it in fine print: |
Issue Description
When an app is initially started using Navigator.startSingleScreenApp(), React Native displays an error if UIViewControllerBasedStatusBarAppearance (in Info.plist) is set to YES. This does not occur when using startTabBasedApp(). Setting it to YES removes the ability to control the status bar appearance through the RNN API.
Steps to Reproduce / Code Snippets / Screenshots
Set UIViewControllerBasedStatusBarAppearance in Info.plist to YES
Start a single screen app:
If I instead use startTabBasedApp() with multiple tabs, the same error does not appear.
Environment
The text was updated successfully, but these errors were encountered: