Skip to content

Commit

Permalink
add missing iOS platform colors (#46730)
Browse files Browse the repository at this point in the history
Summary:
- add missing platform colors on iOS https://developer.apple.com/documentation/uikit/uicolor/standard_colors

## Changelog:

[IOS] [ADDED] - Add `systemCyan` and `systemMint` colors on iOS

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests

Pull Request resolved: #46730

Test Plan:
- Ran it in an iOS app (text is no longer black)

![Simulator Screenshot - iPhone 15 Pro - 2024-09-30 at 15 31 30](https://github.com/user-attachments/assets/2f1d337c-d5f3-40d6-8e58-fdccb94603fd)

Reviewed By: cortinico

Differential Revision: D63635182

Pulled By: cipolleschi

fbshipit-source-id: b6fa3ff0e38630d820aacedbf88dfe9bd13c0644
  • Loading branch information
EvanBacon authored and facebook-github-bot committed Sep 30, 2024
1 parent 5c7a166 commit 4caf548
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-native/React/Base/RCTConvert.mm
Original file line number Diff line number Diff line change
Expand Up @@ -752,11 +752,13 @@ + (UIEdgeInsets)UIEdgeInsets:(id)json
// iOS 13.0
RCTFallbackARGB : @(0xFFa2845e)
},
@"systemCyanColor" : @{},
@"systemGreenColor" : @{},
@"systemIndigoColor" : @{
// iOS 13.0
RCTFallbackARGB : @(0xFF5856d6)
},
@"systemMintColor" : @{},
@"systemOrangeColor" : @{},
@"systemPinkColor" : @{},
@"systemPurpleColor" : @{},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,12 @@
@"systemBrown" : @{
kFallbackARGBKey : @(0xFFa2845e) // iOS 13.0
},
@"systemCyan" : @{},
@"systemGreen" : @{},
@"systemIndigo" : @{
kFallbackARGBKey : @(0xFF5856d6) // iOS 13.0
},
@"systemMint" : @{},
@"systemOrange" : @{},
@"systemPink" : @{},
@"systemPurple" : @{},
Expand Down

0 comments on commit 4caf548

Please sign in to comment.