From 35a78b83f3b41d279eb704a7ed821fd46866bf58 Mon Sep 17 00:00:00 2001 From: Devmate Bot Date: Thu, 5 Feb 2026 11:07:53 -0800 Subject: [PATCH] xplat/yoga/yoga/algorithm Reviewed By: NickGerleman Differential Revision: D91560479 --- .../ReactCommon/yoga/yoga/algorithm/CalculateLayout.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-native/ReactCommon/yoga/yoga/algorithm/CalculateLayout.cpp b/packages/react-native/ReactCommon/yoga/yoga/algorithm/CalculateLayout.cpp index fcc05313549221..d1a72530613254 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/algorithm/CalculateLayout.cpp +++ b/packages/react-native/ReactCommon/yoga/yoga/algorithm/CalculateLayout.cpp @@ -84,8 +84,8 @@ static void computeFlexBasisForChild( float childWidth = YGUndefined; float childHeight = YGUndefined; - SizingMode childWidthSizingMode; - SizingMode childHeightSizingMode; + SizingMode childWidthSizingMode = SizingMode::MaxContent; + SizingMode childHeightSizingMode = SizingMode::MaxContent; const FloatOptional resolvedFlexBasis = child->resolveFlexBasis( direction, mainAxis, mainAxisOwnerSize, ownerWidth); @@ -709,7 +709,7 @@ static float distributeFreeSpaceSecondPass( float childCrossSize = YGUndefined; float childMainSize = updatedMainSize + marginMain; - SizingMode childCrossSizingMode; + SizingMode childCrossSizingMode = SizingMode::MaxContent; SizingMode childMainSizingMode = SizingMode::StretchFit; const auto& childStyle = currentLineChild->style(); @@ -2330,7 +2330,7 @@ bool calculateLayoutInternal( layout->generationCount = generationCount; - LayoutType layoutType; + LayoutType layoutType = LayoutType::kLayout; if (performLayout) { layoutType = !needToVisitNode && cachedResults == &layout->cachedLayout ? LayoutType::kCachedLayout