diff --git a/ReactCommon/fabric/components/root/RootProps.cpp b/ReactCommon/fabric/components/root/RootProps.cpp index 093876d0272..bdaba370bd7 100644 --- a/ReactCommon/fabric/components/root/RootProps.cpp +++ b/ReactCommon/fabric/components/root/RootProps.cpp @@ -39,9 +39,11 @@ RootProps::RootProps( RootProps const &sourceProps, LayoutConstraints const &layoutConstraints, LayoutContext const &layoutContext) - : ViewProps(yogaStyleFromLayoutConstraints(layoutConstraints)), + : ViewProps(), layoutConstraints(layoutConstraints), - layoutContext(layoutContext){}; + layoutContext(layoutContext) { + yogaStyle = yogaStyleFromLayoutConstraints(layoutConstraints); +}; } // namespace react } // namespace facebook diff --git a/ReactCommon/fabric/components/view/ViewProps.cpp b/ReactCommon/fabric/components/view/ViewProps.cpp index 0c0ac487e8e..13b8f995b21 100644 --- a/ReactCommon/fabric/components/view/ViewProps.cpp +++ b/ReactCommon/fabric/components/view/ViewProps.cpp @@ -18,8 +18,6 @@ namespace facebook { namespace react { -ViewProps::ViewProps(YGStyle const &yogaStyle) : YogaStylableProps(yogaStyle) {} - ViewProps::ViewProps(ViewProps const &sourceProps, RawProps const &rawProps) : Props(sourceProps, rawProps), YogaStylableProps(sourceProps, rawProps), diff --git a/ReactCommon/fabric/components/view/ViewProps.h b/ReactCommon/fabric/components/view/ViewProps.h index a185e84fafe..6319f556138 100644 --- a/ReactCommon/fabric/components/view/ViewProps.h +++ b/ReactCommon/fabric/components/view/ViewProps.h @@ -28,7 +28,6 @@ class ViewProps : public Props, public AccessibilityProps { public: ViewProps() = default; - ViewProps(YGStyle const &yogaStyle); ViewProps(ViewProps const &sourceProps, RawProps const &rawProps); #pragma mark - Props diff --git a/ReactCommon/fabric/components/view/yoga/YogaStylableProps.cpp b/ReactCommon/fabric/components/view/yoga/YogaStylableProps.cpp index c5cb90d5393..859b4057f1e 100644 --- a/ReactCommon/fabric/components/view/yoga/YogaStylableProps.cpp +++ b/ReactCommon/fabric/components/view/yoga/YogaStylableProps.cpp @@ -19,9 +19,6 @@ namespace facebook { namespace react { -YogaStylableProps::YogaStylableProps(YGStyle const &yogaStyle) - : yogaStyle(yogaStyle) {} - YogaStylableProps::YogaStylableProps( YogaStylableProps const &sourceProps, RawProps const &rawProps) diff --git a/ReactCommon/fabric/components/view/yoga/YogaStylableProps.h b/ReactCommon/fabric/components/view/yoga/YogaStylableProps.h index f9f13bdc6d2..e93d1381895 100644 --- a/ReactCommon/fabric/components/view/yoga/YogaStylableProps.h +++ b/ReactCommon/fabric/components/view/yoga/YogaStylableProps.h @@ -18,7 +18,6 @@ namespace react { class YogaStylableProps { public: YogaStylableProps() = default; - YogaStylableProps(YGStyle const &yogaStyle); YogaStylableProps( YogaStylableProps const &sourceProps, RawProps const &rawProps);