Skip to content

Commit

Permalink
Fix flow error tests (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
azizhk authored and christianbach committed Jul 23, 2019
1 parent bf50ba5 commit 14d41f2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Libraries/Lists/VirtualizedList.js
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,7 @@ class VirtualizedList extends React.PureComponent<Props, State> {
keyExtractor,
getItemLayout,
renderItem,
ListItemComponent,
extraData,
debug,
} = this.props;
Expand Down Expand Up @@ -723,6 +724,7 @@ class VirtualizedList extends React.PureComponent<Props, State> {
onUnmount={this._onCellUnmount}
getItemLayout={getItemLayout}
renderItem={renderItem}
ListItemComponent={ListItemComponent}
extraData={extraData}
debug={debug}
ref={ref => {
Expand Down Expand Up @@ -1688,10 +1690,9 @@ type CellRendererProps = {
onUpdateSeparators: (cellKeys: Array<?string>, props: Object) => void,
prevCellKey: ?string,
getItemLayout?: ?Function,
renderItem: renderItemType,
renderItem: $PropertyType<OptionalProps, 'renderItem'>,
ListItemComponent?: ?(React.ComponentType<any> | React.Element<any>),
debug: ?boolean,
prevCellKey: ?string,
};

type CellRendererState = {
Expand Down Expand Up @@ -1829,9 +1830,6 @@ class CellRenderer extends React.Component<
);

const onLayout =
/* $FlowFixMe(>=0.68.0 site=react_native_fb) This comment suppresses an
* error found when Flow v0.68 was deployed. To see the error delete this
* comment and run Flow. */
getItemLayout && !debug && !fillRateHelper.enabled()
? undefined
: this._onLayout;
Expand Down

0 comments on commit 14d41f2

Please sign in to comment.