diff --git a/packages/react-native/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/HostPlatformColor.mm b/packages/react-native/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/HostPlatformColor.mm index 4e7293b1c2ddec..2a80746fa0b5a6 100644 --- a/packages/react-native/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/HostPlatformColor.mm +++ b/packages/react-native/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/HostPlatformColor.mm @@ -43,13 +43,13 @@ if (lightColor != nil && darkColor != nil) { UIColor *color = [UIColor colorWithDynamicProvider:^UIColor *_Nonnull(UITraitCollection *_Nonnull collection) { if (collection.userInterfaceStyle == UIUserInterfaceStyleDark) { - if (collection.accessibilityContrast == UIAccessibilityContrastHigh && highContrastDarkColor != nil) { + if (collection.accessibilityContrast == UIAccessibilityContrastHigh && highContrastDark != 0) { return highContrastDarkColor; } else { return darkColor; } } else { - if (collection.accessibilityContrast == UIAccessibilityContrastHigh && highContrastLightColor != nil) { + if (collection.accessibilityContrast == UIAccessibilityContrastHigh && highContrastLight != 0) { return highContrastLightColor; } else { return lightColor;