diff --git a/React/Views/RCTShadowView.m b/React/Views/RCTShadowView.m index f29dbcbbd..457117653 100644 --- a/React/Views/RCTShadowView.m +++ b/React/Views/RCTShadowView.m @@ -284,6 +284,8 @@ static void RCTProcessMetaPropsBorder(const YGValue metaProps[META_PROP_COUNT], return; } + YGNodeSetHasNewLayout(yogaNode, false); + RCTLayoutMetrics layoutMetrics = RCTLayoutMetricsFromYogaNode(yogaNode); layoutContext.absolutePosition.x += layoutMetrics.frame.origin.x; @@ -321,6 +323,8 @@ static void RCTProcessMetaPropsBorder(const YGValue metaProps[META_PROP_COUNT], continue; } + YGNodeSetHasNewLayout(childYogaNode, false); + RCTLayoutMetrics childLayoutMetrics = RCTLayoutMetricsFromYogaNode(childYogaNode); layoutContext.absolutePosition.x += childLayoutMetrics.frame.origin.x;