Skip to content

Commit 25b8ec8

Browse files
elicwhitefacebook-github-bot
authored andcommitted
Adding FlowFixMe when switching between Component and Ref
Reviewed By: yungsters Differential Revision: D7215800 fbshipit-source-id: 175f769a2b1fc67e72b10e113a96eb4167437ab0
1 parent a48b4d5 commit 25b8ec8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Libraries/Lists/VirtualizedList.js

+12
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,10 @@ class VirtualizedList extends React.PureComponent<Props, State> {
748748
cellKey={this._getCellKey() + '-header'}
749749
key="$header">
750750
<View onLayout={this._onLayoutHeader} style={inversionStyle}>
751+
{/*
752+
Flow doesn't know this is a React.Element and not a React.Component
753+
$FlowFixMe https://fburl.com/b9xmtm09
754+
*/}
751755
{element}
752756
</View>
753757
</VirtualizedCellWrapper>,
@@ -857,6 +861,10 @@ class VirtualizedList extends React.PureComponent<Props, State> {
857861
key="$empty"
858862
onLayout={this._onLayoutEmpty}
859863
style={inversionStyle}>
864+
{/*
865+
Flow doesn't know this is a React.Element and not a React.Component
866+
$FlowFixMe https://fburl.com/b9xmtm09
867+
*/}
860868
{element}
861869
</View>,
862870
);
@@ -873,6 +881,10 @@ class VirtualizedList extends React.PureComponent<Props, State> {
873881
cellKey={this._getCellKey() + '-footer'}
874882
key="$footer">
875883
<View onLayout={this._onLayoutFooter} style={inversionStyle}>
884+
{/*
885+
Flow doesn't know this is a React.Element and not a React.Component
886+
$FlowFixMe https://fburl.com/b9xmtm09
887+
*/}
876888
{element}
877889
</View>
878890
</VirtualizedCellWrapper>,

0 commit comments

Comments
 (0)