Skip to content

Commit

Permalink
avoid adding new lines
Browse files Browse the repository at this point in the history
  • Loading branch information
fabOnReact committed Mar 13, 2022
1 parent 828fdd7 commit ce18d88
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Libraries/Lists/FlatList.js
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,6 @@ class FlatList<ItemT> extends React.PureComponent<Props<ItemT>, void> {
Array.isArray(item),
'Expected array of items with numColumns > 1',
);

return (
<View style={StyleSheet.compose(styles.row, columnWrapperStyle)}>
{item.map((it, kk) => {
Expand All @@ -629,14 +628,12 @@ class FlatList<ItemT> extends React.PureComponent<Props<ItemT>, void> {
columnIndex: itemIndex % numColumns,
itemIndex: itemIndex,
};

const element = renderer({
item: it,
index: index * numColumns + kk,
separators: info.separators,
accessibilityCollectionItem,
});

return element != null ? (
<React.Fragment key={kk}>{element}</React.Fragment>
) : null;
Expand Down

0 comments on commit ce18d88

Please sign in to comment.