Skip to content

Downgrade RCTStatusBarManager error to a warning under VC-based status bar (#57631)#57631

Open
shwanton wants to merge 1 commit into
react:mainfrom
shwanton:export-D113043635
Open

Downgrade RCTStatusBarManager error to a warning under VC-based status bar (#57631)#57631
shwanton wants to merge 1 commit into
react:mainfrom
shwanton:export-D113043635

Conversation

@shwanton

@shwanton shwanton commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary:

RCTStatusBarManager's setStyle: and setHidden: already no-op when
UIViewControllerBasedStatusBarAppearance is YES. Currently this path emits
RCTLogError, which redboxes in dev and logs a soft error in release — even
though the call is an expected no-op when the view controller owns the status bar.

Downgrade to RCTLogWarn with a more accurate message so apps adopting
VC-based status bar appearance aren't flooded with spurious errors on every
StatusBar.setBarStyle / setHidden call or <StatusBar> mount.

No behavior change; the methods remain no-ops under the flag.

Changelog: [iOS][Changed] - Downgrade RCTStatusBarManager error to a warning when UIViewControllerBasedStatusBarAppearance is YES

Differential Revision: D113043635

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 21, 2026
@meta-codesync

meta-codesync Bot commented Jul 21, 2026

Copy link
Copy Markdown

@shwanton has exported this pull request. If you are a Meta employee, you can view the originating Diff in D113043635.

@meta-codesync meta-codesync Bot changed the title Downgrade RCTStatusBarManager error to a warning under VC-based status bar Downgrade RCTStatusBarManager error to a warning under VC-based status bar (#57631) Jul 22, 2026
shwanton added a commit to shwanton/react-native-macos that referenced this pull request Jul 22, 2026
…s bar (react#57631)

Summary:

`RCTStatusBarManager`'s `setStyle:` and `setHidden:` already no-op when
`UIViewControllerBasedStatusBarAppearance` is `YES`. Currently this path emits
`RCTLogError`, which redboxes in dev and logs a soft error in release — even
though the call is an expected no-op when the view controller owns the status bar.

Downgrade to `RCTLogWarn` with a more accurate message so apps adopting
VC-based status bar appearance aren't flooded with spurious errors on every
`StatusBar.setBarStyle` / `setHidden` call or `<StatusBar>` mount.

No behavior change; the methods remain no-ops under the flag.

Changelog: [iOS][Changed] - Downgrade RCTStatusBarManager error to a warning when UIViewControllerBasedStatusBarAppearance is YES

Differential Revision: D113043635
@shwanton
shwanton force-pushed the export-D113043635 branch from 5458a57 to e751359 Compare July 22, 2026 00:38
shwanton added a commit to shwanton/react-native-macos that referenced this pull request Jul 22, 2026
…s bar (react#57631)

Summary:

`RCTStatusBarManager`'s `setStyle:` and `setHidden:` already no-op when
`UIViewControllerBasedStatusBarAppearance` is `YES`. Currently this path emits
`RCTLogError`, which redboxes in dev and logs a soft error in release — even
though the call is an expected no-op when the view controller owns the status bar.

Downgrade to `RCTLogWarn` with a more accurate message so apps adopting
VC-based status bar appearance aren't flooded with spurious errors on every
`StatusBar.setBarStyle` / `setHidden` call or `<StatusBar>` mount.

No behavior change; the methods remain no-ops under the flag.

Changelog: [iOS][Changed] - Downgrade RCTStatusBarManager error to a warning when UIViewControllerBasedStatusBarAppearance is YES

Differential Revision: D113043635
@shwanton
shwanton force-pushed the export-D113043635 branch from e751359 to a2d47bc Compare July 22, 2026 00:39
…s bar (react#57631)

Summary:

`RCTStatusBarManager`'s `setStyle:` and `setHidden:` already no-op when
`UIViewControllerBasedStatusBarAppearance` is `YES`. Currently this path emits
`RCTLogError`, which redboxes in dev and logs a soft error in release — even
though the call is an expected no-op when the view controller owns the status bar.

Downgrade to `RCTLogWarn` with a more accurate message so apps adopting
VC-based status bar appearance aren't flooded with spurious errors on every
`StatusBar.setBarStyle` / `setHidden` call or `<StatusBar>` mount.

No behavior change; the methods remain no-ops under the flag.

Changelog: [iOS][Changed] - Downgrade RCTStatusBarManager error to a warning when UIViewControllerBasedStatusBarAppearance is YES

Differential Revision: D113043635
@shwanton
shwanton force-pushed the export-D113043635 branch from a2d47bc to 3948550 Compare July 22, 2026 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant