mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-26 05:15:49 +08:00
@allow-large-files [flow] update to v0.83
Reviewed By: fishythefish Differential Revision: D10362346 fbshipit-source-id: 0f4cc9977cfaa947e3b23112dd1cf482642e2319
This commit is contained in:
committed by
Facebook Github Bot
parent
5e7c774d64
commit
7b150690b6
@@ -650,14 +650,8 @@ class FlatList<ItemT> extends React.PureComponent<Props<ItemT>, void> {
|
||||
render() {
|
||||
if (this.props.legacyImplementation) {
|
||||
return (
|
||||
/* $FlowFixMe(>=0.66.0 site=react_native_fb) This comment suppresses an
|
||||
* error found when Flow v0.66 was deployed. To see the error delete
|
||||
* this comment and run Flow. */
|
||||
<MetroListView
|
||||
{...this.props}
|
||||
/* $FlowFixMe(>=0.66.0 site=react_native_fb) This comment suppresses
|
||||
* an error found when Flow v0.66 was deployed. To see the error
|
||||
* delete this comment and run Flow. */
|
||||
items={this.props.data}
|
||||
ref={this._captureRef}
|
||||
/>
|
||||
|
||||
@@ -29,7 +29,6 @@ type NormalProps = {
|
||||
|
||||
// Provide either `items` or `sections`
|
||||
items?: ?Array<Item>, // By default, an Item is assumed to be {key: string}
|
||||
// $FlowFixMe - Something is a little off with the type Array<Item>
|
||||
sections?: ?Array<{key: string, data: Array<Item>}>,
|
||||
|
||||
/**
|
||||
|
||||
@@ -288,7 +288,6 @@ class SectionList<SectionT: SectionBase<any>> extends React.PureComponent<
|
||||
*/
|
||||
recordInteraction() {
|
||||
const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();
|
||||
// $FlowFixMe Found when typing ListView
|
||||
listRef && listRef.recordInteraction();
|
||||
}
|
||||
|
||||
|
||||
@@ -947,7 +947,6 @@ class VirtualizedList extends React.PureComponent<Props, State> {
|
||||
(this.props.renderScrollComponent || this._defaultRenderScrollComponent)(
|
||||
scrollProps,
|
||||
),
|
||||
// $FlowFixMe Invalid prop usage
|
||||
{
|
||||
ref: this._captureScrollRef,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user