From 6271850c8e702babc4c647256041f8cee6f62944 Mon Sep 17 00:00:00 2001 From: fabriziobertoglio1987 Date: Mon, 11 Jul 2022 23:18:49 +0800 Subject: [PATCH] re-introduce cellStyle flexDirection row --- Libraries/Lists/VirtualizedList.js | 3 ++- .../__snapshots__/VirtualizedList-test.js.snap | 18 ++++++------------ 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/Libraries/Lists/VirtualizedList.js b/Libraries/Lists/VirtualizedList.js index 80de162de4c434..f044c682499e32 100644 --- a/Libraries/Lists/VirtualizedList.js +++ b/Libraries/Lists/VirtualizedList.js @@ -2129,11 +2129,12 @@ class CellRenderer extends React.Component< : ItemSeparatorComponent && ( ); + const cellStyle = horizontal ? styles.row : null; const result = !CellRendererComponent ? ( /* $FlowFixMe[incompatible-type-arg] (>=0.89.0 site=react_native_fb) * This comment suppresses an error found when Flow v0.89 was deployed. * To see the error, delete this comment and run Flow. */ - + {element} {itemSeparator} diff --git a/Libraries/Lists/__tests__/__snapshots__/VirtualizedList-test.js.snap b/Libraries/Lists/__tests__/__snapshots__/VirtualizedList-test.js.snap index 7c8cbb8edd6f5f..c3cb874e700784 100644 --- a/Libraries/Lists/__tests__/__snapshots__/VirtualizedList-test.js.snap +++ b/Libraries/Lists/__tests__/__snapshots__/VirtualizedList-test.js.snap @@ -503,12 +503,9 @@ exports[`VirtualizedList handles nested lists 1`] = `