diff --git a/packages/react-native/ReactCommon/yoga/yoga/algorithm/CalculateLayout.cpp b/packages/react-native/ReactCommon/yoga/yoga/algorithm/CalculateLayout.cpp index 8b645b99710cb4..ea7a090317bf12 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/algorithm/CalculateLayout.cpp +++ b/packages/react-native/ReactCommon/yoga/yoga/algorithm/CalculateLayout.cpp @@ -1743,8 +1743,9 @@ static void calculateLayoutImpl( float leadPerLine = 0; float currentLead = leadingPaddingAndBorderCross; - const float unclampedCrossDim = - node->styleDefinesDimension(crossAxis, crossAxisownerSize) + const float unclampedCrossDim = sizingModeCrossDim == SizingMode::StretchFit + ? availableInnerCrossDim + paddingAndBorderAxisCross + : node->styleDefinesDimension(crossAxis, crossAxisownerSize) ? yoga::resolveValue( node->getResolvedDimension(dimension(crossAxis)), crossAxisownerSize)