diff --git a/ReactCommon/fabric/view/ViewProps.cpp b/ReactCommon/fabric/view/ViewProps.cpp index e3f9f6fdd..725c2014b 100644 --- a/ReactCommon/fabric/view/ViewProps.cpp +++ b/ReactCommon/fabric/view/ViewProps.cpp @@ -45,6 +45,18 @@ void ViewProps::apply(const RawProps &rawProps) { } } +#pragma mark - Getters + +SharedColor ViewProps::getForegroundColor() const { + return foregroundColor_; +} + +SharedColor ViewProps::getBackgroundColor() const { + return backgroundColor_; +} + +#pragma mark - DebugStringConvertible + SharedDebugStringConvertibleList ViewProps::getDebugProps() const { ViewProps defaultProps = {}; diff --git a/ReactCommon/fabric/view/ViewProps.h b/ReactCommon/fabric/view/ViewProps.h index 89b20dec7..365d469f7 100644 --- a/ReactCommon/fabric/view/ViewProps.h +++ b/ReactCommon/fabric/view/ViewProps.h @@ -28,6 +28,11 @@ class ViewProps: public: void apply(const RawProps &rawProps) override; +#pragma mark - Getters + + SharedColor getForegroundColor() const; + SharedColor getBackgroundColor() const; + private: int zIndex_ {0}; float opacity_ {1.0};