diff --git a/ReactCommon/fabric/graphics/platform/cxx/Color.h b/ReactCommon/fabric/graphics/platform/cxx/Color.h index 560d491582a..b4a2dd3cf30 100644 --- a/ReactCommon/fabric/graphics/platform/cxx/Color.h +++ b/ReactCommon/fabric/graphics/platform/cxx/Color.h @@ -42,6 +42,14 @@ class SharedColor { return color_; } + bool operator==(const SharedColor &otherColor) const { + return color_ == otherColor.color_; + } + + bool operator!=(const SharedColor &otherColor) const { + return color_ != otherColor.color_; + } + operator bool() const { return color_ != UndefinedColor; }