Adding FlowFixMe when switching between Component and Ref

Reviewed By: yungsters

Differential Revision: D7215800

fbshipit-source-id: 175f769a2b1fc67e72b10e113a96eb4167437ab0
This commit is contained in:
Eli White 2018-03-09 11:48:30 -08:00 коммит произвёл Facebook Github Bot
Родитель a48b4d5df1
Коммит 25b8ec81df
1 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -748,6 +748,10 @@ class VirtualizedList extends React.PureComponent<Props, State> {
cellKey={this._getCellKey() + '-header'} cellKey={this._getCellKey() + '-header'}
key="$header"> key="$header">
<View onLayout={this._onLayoutHeader} style={inversionStyle}> <View onLayout={this._onLayoutHeader} style={inversionStyle}>
{/*
Flow doesn't know this is a React.Element and not a React.Component
$FlowFixMe https://fburl.com/b9xmtm09
*/}
{element} {element}
</View> </View>
</VirtualizedCellWrapper>, </VirtualizedCellWrapper>,
@ -857,6 +861,10 @@ class VirtualizedList extends React.PureComponent<Props, State> {
key="$empty" key="$empty"
onLayout={this._onLayoutEmpty} onLayout={this._onLayoutEmpty}
style={inversionStyle}> style={inversionStyle}>
{/*
Flow doesn't know this is a React.Element and not a React.Component
$FlowFixMe https://fburl.com/b9xmtm09
*/}
{element} {element}
</View>, </View>,
); );
@ -873,6 +881,10 @@ class VirtualizedList extends React.PureComponent<Props, State> {
cellKey={this._getCellKey() + '-footer'} cellKey={this._getCellKey() + '-footer'}
key="$footer"> key="$footer">
<View onLayout={this._onLayoutFooter} style={inversionStyle}> <View onLayout={this._onLayoutFooter} style={inversionStyle}>
{/*
Flow doesn't know this is a React.Element and not a React.Component
$FlowFixMe https://fburl.com/b9xmtm09
*/}
{element} {element}
</View> </View>
</VirtualizedCellWrapper>, </VirtualizedCellWrapper>,