Skip to content

Remove StatusBar deprecated props / methods#57392

Open
zoontek wants to merge 13 commits into
react:mainfrom
zoontek:remove-status-bar-deprecated-props
Open

Remove StatusBar deprecated props / methods#57392
zoontek wants to merge 13 commits into
react:mainfrom
zoontek:remove-status-bar-deprecated-props

Conversation

@zoontek

@zoontek zoontek commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary:

Removes long-deprecated StatusBar APIs that no longer do anything:

  • Android: backgroundColor / translucent props and setBackgroundColor() / setTranslucent() (no effect under edge-to-edge, deprecated since 0.76).
  • iOS: networkActivityIndicatorVisible prop and setNetworkActivityIndicatorVisible() (unsupported since iOS 13, deprecated since 0.77).

Also removes the now-unused native backing (setColor/setTranslucent Android, setNetworkActivityIndicatorVisible iOS, Android DEFAULT_BACKGROUND_COLOR).

See #57384.

Changelog:

[GENERAL] [BREAKING] - Remove deprecated StatusBar backgroundColor / translucent / networkActivityIndicatorVisible props and setBackgroundColor / setTranslucent / setNetworkActivityIndicatorVisible methods

Test Plan:

  • yarn flow check — passes
  • yarn jest StatusBar — passes
  • yarn test-typescript — passes
@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 1, 2026
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

Warning

JavaScript API change detected

This PR commits an update to ReactNativeApi.d.ts, indicating a change to React Native's public JavaScript API.

  • Please include a clear changelog message.
  • This change will be subject to additional review.

This change was flagged as: POTENTIALLY_BREAKING

@zoontek zoontek force-pushed the remove-status-bar-deprecated-props branch from 4ec279e to ef477ce Compare July 1, 2026 08:29
@zoontek zoontek mentioned this pull request Jul 1, 2026
8 tasks
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Jul 1, 2026
@meta-codesync

meta-codesync Bot commented Jul 1, 2026

Copy link
Copy Markdown

@cortinico has imported this pull request. If you are a Meta employee, you can view this in D110304943.

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. p: Expo Partner: Expo Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

1 participant