diff --git a/ReactCommon/fabric/components/view/yoga/YogaStylableProps.h b/ReactCommon/fabric/components/view/yoga/YogaStylableProps.h index 6fa82ebe146fb6..c1572fcac06dc0 100644 --- a/ReactCommon/fabric/components/view/yoga/YogaStylableProps.h +++ b/ReactCommon/fabric/components/view/yoga/YogaStylableProps.h @@ -19,7 +19,7 @@ class YogaStylableProps; typedef std::shared_ptr SharedYogaStylableProps; -class YogaStylableProps { +class YogaStylableProps : public virtual DebugStringConvertible { public: YogaStylableProps() = default; YogaStylableProps(const YGStyle &yogaStyle); @@ -38,7 +38,8 @@ class YogaStylableProps { #pragma mark - DebugStringConvertible (Partial) public: - SharedDebugStringConvertibleList getDebugProps() const; + virtual ~YogaStylableProps() = default; + SharedDebugStringConvertibleList getDebugProps() const override; #endif };