From 6d7a4208f007770117ea926a33132f441c23252f Mon Sep 17 00:00:00 2001 From: evanbacon Date: Mon, 30 Sep 2024 15:29:38 +0200 Subject: [PATCH] add missing iOS platform colors --- packages/react-native/React/Base/RCTConvert.mm | 2 ++ .../ios/react/renderer/graphics/RCTPlatformColorUtils.mm | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/react-native/React/Base/RCTConvert.mm b/packages/react-native/React/Base/RCTConvert.mm index d4a541e2b23b89..314dc678cb0785 100644 --- a/packages/react-native/React/Base/RCTConvert.mm +++ b/packages/react-native/React/Base/RCTConvert.mm @@ -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" : @{}, diff --git a/packages/react-native/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/RCTPlatformColorUtils.mm b/packages/react-native/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/RCTPlatformColorUtils.mm index 4348d876c50860..7f12a3ab00c9b4 100644 --- a/packages/react-native/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/RCTPlatformColorUtils.mm +++ b/packages/react-native/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/RCTPlatformColorUtils.mm @@ -95,10 +95,12 @@ @"systemBrown" : @{ kFallbackARGBKey : @(0xFFa2845e) // iOS 13.0 }, + @"systemCyan" : @{}, @"systemGreen" : @{}, @"systemIndigo" : @{ kFallbackARGBKey : @(0xFF5856d6) // iOS 13.0 }, + @"systemMint" : @{}, @"systemOrange" : @{}, @"systemPink" : @{}, @"systemPurple" : @{},