1 parent d7ff82e commit e19d2cfCopy full SHA for e19d2cf
1 file changed
packages/react-native/Libraries/Lists/FlatList.js
@@ -451,8 +451,7 @@ class FlatList<ItemT = any> extends React.PureComponent<FlatListProps<ItemT>> {
451
}
452
453
454
- // $FlowFixMe[missing-local-annot]
455
- componentDidUpdate(prevProps: FlatListProps<ItemT>) {
+ componentDidUpdate(prevProps: FlatListProps<ItemT>): void {
456
invariant(
457
prevProps.numColumns === this.props.numColumns,
458
'Changing numColumns on the fly is not supported. Change the key prop on FlatList when ' +
0 commit comments