Compare commits

...
1 Commits
Author SHA1 Message Date
CodemodService BotandFacebook GitHub Bot 26d93be376 Fix CQS signal modernize-use-designated-initializers in xplat/js/react-native-github/packages [A] [B]
Reviewed By: rshest

Differential Revision: D80617317
2025-08-21 02:22:49 -07:00
2 changed files with 6 additions and 5 deletions
@@ -96,7 +96,8 @@ int32_t ColorFromUIColor(UIColor *color)
{
CGFloat rgba[4];
[color getRed:&rgba[0] green:&rgba[1] blue:&rgba[2] alpha:&rgba[3]];
return ColorFromColorComponents({(float)rgba[0], (float)rgba[1], (float)rgba[2], (float)rgba[3]});
return ColorFromColorComponents(
{.red = (float)rgba[0], .green = (float)rgba[1], .blue = (float)rgba[2], .alpha = (float)rgba[3]});
}
int32_t ColorFromUIColorForSpecificTraitCollection(
@@ -43,10 +43,10 @@ inline facebook::react::SharedColor RCTPlatformColorComponentsFromDynamicItems(
}
Color color = Color(DynamicColor{
(*lightSharedColor).getColor(),
(*darkSharedColor).getColor(),
(*highContrastLightSharedColor).getColor(),
(*highContrastDarkSharedColor).getColor()});
.lightColor = (*lightSharedColor).getColor(),
.darkColor = (*darkSharedColor).getColor(),
.highContrastLightColor = (*highContrastLightSharedColor).getColor(),
.highContrastDarkColor = (*highContrastDarkSharedColor).getColor()});
return SharedColor(color);
}