Skip to content

Set UIViewControllerBasedStatusBarAppearance to true - #258

Merged
cipolleschi merged 1 commit into
react-native-community:mainfrom
alanjhughes:alanhughes/vc-status-bar-appearance-main
Oct 27, 2026
Merged

cipolleschi merged 1 commit into
react-native-community:mainfrom
alanjhughes:alanhughes/vc-status-bar-appearance-main

Conversation

@alanjhughes

Copy link
Copy Markdown
Contributor

Summary:

For apps built with the iOS 27 SDK, iOS 27 makes the UIApplication status bar setters no-ops. react/react-native#58926 changed StatusBar to report its style and visibility through the view controller status bar methods instead. That path only works when UIViewControllerBasedStatusBarAppearance is YES.

The template still sets it to NO, so StatusBar has no effect in new projects built with the iOS 27 SDK. This sets it to YES, which matches the change made to helloworld and RNTester in react/react-native#58926.

Changelog:

[IOS] [CHANGED] - Set UIViewControllerBasedStatusBarAppearance to true in the template Info.plist

Test Plan:

The change is one value in template/ios/HelloWorld/Info.plist. The template CI jobs build the iOS app from the template.

@cipolleschi
cipolleschi merged commit 4f3db58 into react-native-community:main Oct 27, 2026
1 check passed
leotm added a commit to leotm/react-native-template-new-architecture that referenced this pull request Nov 5, 2026
* react/react-native@v0.88.0...v0.88.1

* Regen CocoaPods lockfile

* Bump Jest snapshot test rendered version

* Bump ReadMe version

* Fix iOS 27 status bar style and visibility

- since moved to UI view controller status bar (modern apple way)
  - no official RN multi window (scene) nor multi runtime instance (hermes vm) support yet, hax only

- issue react/react-native#58758
- core react/react-native#58926
- downstream react-native-community/template#258
- og react/react-native#11710 rnc-archive/react-native-statusbar#5
  - react/react-native#25425 react/react-native#25919 reverted cos fb apps kaputt

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: LeoTM <1881059+leotm@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants