Skip to content

Commit 3a11bff

Browse files
committed
add numColumns to restProps passed to VirtualizedList
1 parent 489ebe4 commit 3a11bff

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Libraries/Lists/FlatList.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,6 @@ class FlatList<ItemT> extends React.PureComponent<Props<ItemT>, void> {
641641

642642
render(): React.Node {
643643
const {
644-
numColumns,
645644
columnWrapperStyle,
646645
removeClippedSubviews: _removeClippedSubviews,
647646
...restProps
@@ -653,7 +652,6 @@ class FlatList<ItemT> extends React.PureComponent<Props<ItemT>, void> {
653652
getItem={this._getItem}
654653
getItemCount={this._getItemCount}
655654
keyExtractor={this._keyExtractor}
656-
numColumns={numColumnsOrDefault(numColumns)}
657655
ref={this._captureRef}
658656
viewabilityConfigCallbackPairs={this._virtualizedListPairs}
659657
removeClippedSubviews={removeClippedSubviewsOrDefault(

Libraries/Lists/VirtualizedList.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ type RequiredProps = {|
9898
*/
9999
getItemCount: (data: any) => number,
100100
/**
101-
* The number of columns. Default is 1. Used to calculated accessibilityCollection prop.
101+
* The number of columns used in FlatList.
102+
* The default of 1 is used in other components to calculate the accessibilityCollection prop.
102103
*/
103104
numColumns?: number,
104105
|};

0 commit comments

Comments
 (0)