mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix CQS signal modernize-use-designated-initializers in xplat/js/react-native-github/packages [B] [A] [A] (#53401)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/53401 Reviewed By: cipolleschi Differential Revision: D80713611 fbshipit-source-id: 73dc034d966eea5b388a51ab84da2416531c7376
This commit is contained in:
committed by
Facebook GitHub Bot
parent
e60ddf0adb
commit
56ab2e72b2
+1
-1
@@ -184,7 +184,7 @@ static inline facebook::react::ColorComponents _ColorComponentsFromUIColor(UICol
|
||||
{
|
||||
CGFloat rgba[4];
|
||||
[color getRed:&rgba[0] green:&rgba[1] blue:&rgba[2] alpha:&rgba[3]];
|
||||
return {(float)rgba[0], (float)rgba[1], (float)rgba[2], (float)rgba[3]};
|
||||
return {.red = (float)rgba[0], .green = (float)rgba[1], .blue = (float)rgba[2], .alpha = (float)rgba[3]};
|
||||
}
|
||||
|
||||
facebook::react::ColorComponents RCTPlatformColorComponentsFromSemanticItems(std::vector<std::string> &semanticItems)
|
||||
|
||||
Reference in New Issue
Block a user