From ce18d88eb12e50e40b5e6c02bc08da74a5ed5392 Mon Sep 17 00:00:00 2001 From: fabriziobertoglio1987 Date: Sun, 13 Mar 2022 14:23:14 +0800 Subject: [PATCH] avoid adding new lines --- Libraries/Lists/FlatList.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/Libraries/Lists/FlatList.js b/Libraries/Lists/FlatList.js index c5f843a28c5c68..b72eafbf0def3b 100644 --- a/Libraries/Lists/FlatList.js +++ b/Libraries/Lists/FlatList.js @@ -618,7 +618,6 @@ class FlatList extends React.PureComponent, void> { Array.isArray(item), 'Expected array of items with numColumns > 1', ); - return ( {item.map((it, kk) => { @@ -629,14 +628,12 @@ class FlatList extends React.PureComponent, void> { columnIndex: itemIndex % numColumns, itemIndex: itemIndex, }; - const element = renderer({ item: it, index: index * numColumns + kk, separators: info.separators, accessibilityCollectionItem, }); - return element != null ? ( {element} ) : null;