From 6539a8ba45e7703d32bb5bbdb14af08f87f42d61 Mon Sep 17 00:00:00 2001 From: Nick Lefever Date: Fri, 10 Nov 2023 01:18:12 +0100 Subject: [PATCH] [fabric] Disable view flattening in header/footer/empty/spacer components of VirtualizedList Summary: View flattening was already disabled in the cell renderer used by the Virtualized List in this diff D50846483 This diff disables view flattening in the header, footer, empty and spacer cells to fix the layout being broken because of the vertical axis flipping used by the reverse order virtualized list. Test Plan: Run Zeratul with Fabric enabled and scroll to the top of a message thread to show the participants summary header. | Before | After | |--| | {F1145726580} | {F1145726618} | Reviewers: shawndempsey, chpurrer, #rn-desktop Reviewed By: chpurrer Differential Revision: https://phabricator.intern.facebook.com/D51182545 Tasks: T167539420 --- .../__snapshots__/FlatList-test.js.snap | 1 + .../__snapshots__/SectionList-test.js.snap | 1 + .../Lists/VirtualizedList.js | 4 ++ .../VirtualizedList-test.js.snap | 43 +++++++++++++++++++ .../VirtualizedSectionList-test.js.snap | 2 + 5 files changed, 51 insertions(+) diff --git a/packages/react-native/Libraries/Lists/__tests__/__snapshots__/FlatList-test.js.snap b/packages/react-native/Libraries/Lists/__tests__/__snapshots__/FlatList-test.js.snap index 08b9739d54cc79..4912d50a2cc240 100644 --- a/packages/react-native/Libraries/Lists/__tests__/__snapshots__/FlatList-test.js.snap +++ b/packages/react-native/Libraries/Lists/__tests__/__snapshots__/FlatList-test.js.snap @@ -176,6 +176,7 @@ exports[`FlatList renders all the bells and whistles 1`] = `