Skip to content

Commit 062cdcd

Browse files
committed
fix Runtime Error NoSuchKey exception columnCount
numColums default was removed with commit fabOnReact/react-native-notes@7d5895d More info at fabOnReact/react-native-notes#6 (comment)
1 parent 60f7794 commit 062cdcd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Libraries/Lists/FlatList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ class FlatList<ItemT> extends React.PureComponent<Props<ItemT>, void> {
672672
const accessibilityCollectionProps = {
673673
itemCount: this.props.data ? this.props.data.length : 0,
674674
rowCount: this._getItemCount(this.props.data),
675-
columnCount: this.props.numColumns,
675+
columnCount: numColumnsOrDefault(this.props.numColumns),
676676
hierarchical: false,
677677
};
678678

0 commit comments

Comments
 (0)