diff --git a/ReactCommon/fabric/components/view/yoga/YogaLayoutableShadowNode.cpp b/ReactCommon/fabric/components/view/yoga/YogaLayoutableShadowNode.cpp index 0c87c9094ec..f4bd3ca6ddd 100644 --- a/ReactCommon/fabric/components/view/yoga/YogaLayoutableShadowNode.cpp +++ b/ReactCommon/fabric/components/view/yoga/YogaLayoutableShadowNode.cpp @@ -245,11 +245,8 @@ void YogaLayoutableShadowNode::layoutTree( { SystraceSection s("YogaLayoutableShadowNode::YGNodeCalculateLayout"); - YGNodeCalculateLayoutWithContext(&yogaNode_, - availableWidth, - availableHeight, - YGDirectionInherit, - &layoutContext); + YGNodeCalculateLayout( + &yogaNode_, availableWidth, availableHeight, YGDirectionInherit); } layout(layoutContext); @@ -323,8 +320,7 @@ YGSize YogaLayoutableShadowNode::yogaNodeMeasureCallbackConnector( float width, YGMeasureMode widthMode, float height, - YGMeasureMode heightMode, - void *layoutContext) { + YGMeasureMode heightMode) { SystraceSection s( "YogaLayoutableShadowNode::yogaNodeMeasureCallbackConnector"); diff --git a/ReactCommon/fabric/components/view/yoga/YogaLayoutableShadowNode.h b/ReactCommon/fabric/components/view/yoga/YogaLayoutableShadowNode.h index 303609b7541..ceb0de20f6a 100644 --- a/ReactCommon/fabric/components/view/yoga/YogaLayoutableShadowNode.h +++ b/ReactCommon/fabric/components/view/yoga/YogaLayoutableShadowNode.h @@ -121,8 +121,7 @@ class YogaLayoutableShadowNode : public LayoutableShadowNode { float width, YGMeasureMode widthMode, float height, - YGMeasureMode heightMode, - void *layoutContext); + YGMeasureMode heightMode); }; template <>