diff --git a/packages/react-native/Libraries/Components/View/__tests__/View-flexBasisFitContent-itest.js b/packages/react-native/Libraries/Components/View/__tests__/View-flexBasisFitContent-itest.js index e9f1f5fa786b..0b03d544f783 100644 --- a/packages/react-native/Libraries/Components/View/__tests__/View-flexBasisFitContent-itest.js +++ b/packages/react-native/Libraries/Components/View/__tests__/View-flexBasisFitContent-itest.js @@ -342,7 +342,7 @@ test('percentage padding tracks an updated owner width', () => { ); }); -test('gates native box sizing cache invalidation', () => { +test('invalidates layout immediately when native box sizing changes', () => { const root = Fantom.createRoot({ viewportHeight: 280, viewportWidth: 240, @@ -399,17 +399,6 @@ test('gates native box sizing cache invalidation', () => { }); render(40); - const layoutAfterFirstRerender = { - leafWidth: nullthrows(leafRef.current).getBoundingClientRect().width, - scrollWidth: nullthrows(scrollRef.current).getBoundingClientRect().width, - }; - expect(layoutAfterFirstRerender).toEqual({ - leafWidth: 83, - scrollWidth: 83, - }); - - render(53); - expect({ leafWidth: nullthrows(leafRef.current).getBoundingClientRect().width, scrollWidth: nullthrows(scrollRef.current).getBoundingClientRect().width, diff --git a/packages/react-native/ReactCommon/yoga/yoga/style/Style.h b/packages/react-native/ReactCommon/yoga/yoga/style/Style.h index 00af38c692b4..a25d3a28ebe9 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/style/Style.h +++ b/packages/react-native/ReactCommon/yoga/yoga/style/Style.h @@ -653,6 +653,7 @@ class YG_EXPORT Style { alignItems_ == other.alignItems_ && alignSelf_ == other.alignSelf_ && positionType_ == other.positionType_ && flexWrap_ == other.flexWrap_ && overflow_ == other.overflow_ && display_ == other.display_ && + boxSizing_ == other.boxSizing_ && numbersEqual(flex_, pool_, other.flex_, other.pool_) && numbersEqual(flexGrow_, pool_, other.flexGrow_, other.pool_) && numbersEqual(flexShrink_, pool_, other.flexShrink_, other.pool_) &&