Skip to content

Deprecate [RCTConvert UIBarStyle:]#42100

Closed
Saadnajmi wants to merge 1 commit into
facebook:mainfrom
Saadnajmi:deprecate
Closed

Deprecate [RCTConvert UIBarStyle:]#42100
Saadnajmi wants to merge 1 commit into
facebook:mainfrom
Saadnajmi:deprecate

Conversation

@Saadnajmi
Copy link
Copy Markdown
Contributor

Summary:

The enums UIBarStyleBlackOpaque and UIBarStyleBlackTranslucent have been deprecated since iOS 13, already below React Native's minimum OS of iOS 13.4. Indeed, they are not available on visionOS and tvOS, making this a source of extra diffs.

Rather than deprecate and remove those options, I noticed that we don't actually use that RCTConvert method in the core repo, and haven't since 0.58-stable (presumably before the lean core effort). Let's just remove it, it's a conversion that should be easy enough to replicate elsewhere. However, removal is a breaking change, so let's deprecate it for one release (0.74) and remove it for the next one (0.75). For posterity, tracking deprecation with microsoft#2008 and removal with microsoft#2009 .

Changelog:

[IOS] [DEPRECATED] - Deprecate [RCTConvert UIBarStyle:]

Test Plan:

CI should pass

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Microsoft Partner: Microsoft Partner labels Dec 29, 2023
@Saadnajmi
Copy link
Copy Markdown
Contributor Author

@okwasniewski FYI

@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Dec 29, 2023
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@NickGerleman has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@github-actions
Copy link
Copy Markdown

This pull request was successfully merged by @Saadnajmi in 157cb0e.

When will my fix make it into a release? | Upcoming Releases

@github-actions github-actions Bot added the Merged This PR has been merged. label Dec 31, 2023
@Saadnajmi Saadnajmi deleted the deprecate branch May 16, 2024 23:04
facebook-github-bot pushed a commit that referenced this pull request Jun 27, 2024
Summary:
Resolves microsoft#2008

Followup to #42100 / 157cb0e , let's remove the deprecated RCTConvert method.

## Changelog:

[IOS] [REMOVED] - Remove `[RCTConvert UIBarStyle:]`

Pull Request resolved: #44597

Test Plan: CI should pass

Reviewed By: christophpurrer

Differential Revision: D59128144

Pulled By: javache

fbshipit-source-id: 3e66422a7f4a139a6d68cbdfc6aae211ea239d4e
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. Merged This PR has been merged. p: Microsoft Partner: Microsoft Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants