Commit 9e71c44
Downgrade RCTStatusBarManager error to a warning under VC-based status bar (#57631)
Summary:
Pull Request resolved: #57631
`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
Reviewed By: cipolleschi
Differential Revision: D113043635
fbshipit-source-id: 95224d7beb8e52daf4f29986e7ff5ff1ec4da60b1 parent 5421c5e commit 9e71c44
1 file changed
Lines changed: 4 additions & 4 deletions
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
| 151 | + | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
168 | | - | |
| 167 | + | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
0 commit comments