diff --git a/packages/react-native/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/HostPlatformColor.h b/packages/react-native/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/HostPlatformColor.h index 80d61ff89d05..051b947d6bfa 100644 --- a/packages/react-native/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/HostPlatformColor.h +++ b/packages/react-native/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/HostPlatformColor.h @@ -26,7 +26,7 @@ struct Color { Color(int32_t color); Color(const DynamicColor &dynamicColor); Color(const ColorComponents &components); - Color() : uiColor_(nullptr) {}; + constexpr Color() : uiColor_(nullptr), uiColorHashValue_(0) {}; int32_t getColor() const; std::size_t getUIColorHash() const; diff --git a/scripts/cxx-api/api-snapshots/ReactAppleDebugCxx.api b/scripts/cxx-api/api-snapshots/ReactAppleDebugCxx.api index 75f6b681b9d3..2520a538f5cd 100644 --- a/scripts/cxx-api/api-snapshots/ReactAppleDebugCxx.api +++ b/scripts/cxx-api/api-snapshots/ReactAppleDebugCxx.api @@ -5325,12 +5325,12 @@ struct facebook::react::Bridging { } struct facebook::react::Color { - public Color(); public Color(const facebook::react::ColorComponents& components); public Color(const facebook::react::DynamicColor& dynamicColor); public Color(int32_t color); public bool operator!=(const facebook::react::Color& other) const; public bool operator==(const facebook::react::Color& other) const; + public constexpr Color(); public facebook::react::ColorComponents getColorComponents() const; public float getChannel(int channelId) const; public int32_t getColor() const; diff --git a/scripts/cxx-api/api-snapshots/ReactAppleFrameworksCxx.api b/scripts/cxx-api/api-snapshots/ReactAppleFrameworksCxx.api index d4bb31bd721b..11ae2710e68e 100644 --- a/scripts/cxx-api/api-snapshots/ReactAppleFrameworksCxx.api +++ b/scripts/cxx-api/api-snapshots/ReactAppleFrameworksCxx.api @@ -8155,12 +8155,12 @@ struct facebook::react::CallbackWithId { } struct facebook::react::Color { - public Color(); public Color(const facebook::react::ColorComponents& components); public Color(const facebook::react::DynamicColor& dynamicColor); public Color(int32_t color); public bool operator!=(const facebook::react::Color& other) const; public bool operator==(const facebook::react::Color& other) const; + public constexpr Color(); public facebook::react::ColorComponents getColorComponents() const; public float getChannel(int channelId) const; public int32_t getColor() const; diff --git a/scripts/cxx-api/api-snapshots/ReactAppleNewarchCxx.api b/scripts/cxx-api/api-snapshots/ReactAppleNewarchCxx.api index 540845dc7eb9..3c79e40a89ce 100644 --- a/scripts/cxx-api/api-snapshots/ReactAppleNewarchCxx.api +++ b/scripts/cxx-api/api-snapshots/ReactAppleNewarchCxx.api @@ -5310,12 +5310,12 @@ struct facebook::react::Bridging { } struct facebook::react::Color { - public Color(); public Color(const facebook::react::ColorComponents& components); public Color(const facebook::react::DynamicColor& dynamicColor); public Color(int32_t color); public bool operator!=(const facebook::react::Color& other) const; public bool operator==(const facebook::react::Color& other) const; + public constexpr Color(); public facebook::react::ColorComponents getColorComponents() const; public float getChannel(int channelId) const; public int32_t getColor() const; diff --git a/scripts/cxx-api/api-snapshots/ReactAppleReleaseCxx.api b/scripts/cxx-api/api-snapshots/ReactAppleReleaseCxx.api index 23d1a62bc2d9..a72d0bf0e80e 100644 --- a/scripts/cxx-api/api-snapshots/ReactAppleReleaseCxx.api +++ b/scripts/cxx-api/api-snapshots/ReactAppleReleaseCxx.api @@ -5318,12 +5318,12 @@ struct facebook::react::Bridging { } struct facebook::react::Color { - public Color(); public Color(const facebook::react::ColorComponents& components); public Color(const facebook::react::DynamicColor& dynamicColor); public Color(int32_t color); public bool operator!=(const facebook::react::Color& other) const; public bool operator==(const facebook::react::Color& other) const; + public constexpr Color(); public facebook::react::ColorComponents getColorComponents() const; public float getChannel(int channelId) const; public int32_t getColor() const;