diff --git a/Libraries/Lists/VirtualizedList.js b/Libraries/Lists/VirtualizedList.js index 90e978cf8..ed113acda 100644 --- a/Libraries/Lists/VirtualizedList.js +++ b/Libraries/Lists/VirtualizedList.js @@ -748,6 +748,10 @@ class VirtualizedList extends React.PureComponent { cellKey={this._getCellKey() + '-header'} key="$header"> + {/* + Flow doesn't know this is a React.Element and not a React.Component + $FlowFixMe https://fburl.com/b9xmtm09 + */} {element} , @@ -857,6 +861,10 @@ class VirtualizedList extends React.PureComponent { key="$empty" onLayout={this._onLayoutEmpty} style={inversionStyle}> + {/* + Flow doesn't know this is a React.Element and not a React.Component + $FlowFixMe https://fburl.com/b9xmtm09 + */} {element} , ); @@ -873,6 +881,10 @@ class VirtualizedList extends React.PureComponent { cellKey={this._getCellKey() + '-footer'} key="$footer"> + {/* + Flow doesn't know this is a React.Element and not a React.Component + $FlowFixMe https://fburl.com/b9xmtm09 + */} {element} ,