From 91c4b0357a1e83419095ed5ae9c9f50602f86ce6 Mon Sep 17 00:00:00 2001 From: Eli White Date: Sat, 12 May 2018 10:25:21 -0700 Subject: [PATCH] Remove unused suppressions Reviewed By: yungsters Differential Revision: D7982027 fbshipit-source-id: 00e538dc678275495e097d9cd14a0a2643ebaefd --- Libraries/Components/ScrollView/ScrollView.js | 1 - Libraries/Experimental/SwipeableRow/SwipeableListView.js | 2 -- Libraries/Lists/FlatList.js | 1 - Libraries/Lists/ListView/ListView.js | 2 -- Libraries/Lists/MetroListView.js | 4 ---- Libraries/Lists/SectionList.js | 5 ----- 6 files changed, 15 deletions(-) diff --git a/Libraries/Components/ScrollView/ScrollView.js b/Libraries/Components/ScrollView/ScrollView.js index 3038f4cfff033b..0822ba140d4e5e 100644 --- a/Libraries/Components/ScrollView/ScrollView.js +++ b/Libraries/Components/ScrollView/ScrollView.js @@ -334,7 +334,6 @@ const ScrollView = createReactClass({ * - `false`, deprecated, use 'never' instead * - `true`, deprecated, use 'always' instead */ - // $FlowFixMe keyboardShouldPersistTaps: PropTypes.oneOf([ 'always', 'never', diff --git a/Libraries/Experimental/SwipeableRow/SwipeableListView.js b/Libraries/Experimental/SwipeableRow/SwipeableListView.js index 11afd75e3c6ba2..e449501c71835f 100644 --- a/Libraries/Experimental/SwipeableRow/SwipeableListView.js +++ b/Libraries/Experimental/SwipeableRow/SwipeableListView.js @@ -117,11 +117,9 @@ class SwipeableListView extends React.Component { render(): React.Node { return ( - // $FlowFixMe Invalid prop usage { - // $FlowFixMe Invalid prop usage this._listViewRef = ref; }} dataSource={this.state.dataSource.getDataSource()} diff --git a/Libraries/Lists/FlatList.js b/Libraries/Lists/FlatList.js index 0e693a39649d2d..5a0827be1df830 100644 --- a/Libraries/Lists/FlatList.js +++ b/Libraries/Lists/FlatList.js @@ -476,7 +476,6 @@ class FlatList extends React.PureComponent, void> { _virtualizedListPairs: Array = []; _captureRef = ref => { - // $FlowFixMe Invalid prop usage this._listRef = ref; }; diff --git a/Libraries/Lists/ListView/ListView.js b/Libraries/Lists/ListView/ListView.js index 402b053fdf27ec..cd168bc656cd0d 100644 --- a/Libraries/Lists/ListView/ListView.js +++ b/Libraries/Lists/ListView/ListView.js @@ -516,10 +516,8 @@ const ListView = createReactClass({ if (props.removeClippedSubviews === undefined) { props.removeClippedSubviews = true; } - // $FlowFixMe Invalid prop usage Object.assign(props, { onScroll: this._onScroll, - // $FlowFixMe Invalid prop usage stickyHeaderIndices: this.props.stickyHeaderIndices.concat( stickySectionHeaderIndices, ), diff --git a/Libraries/Lists/MetroListView.js b/Libraries/Lists/MetroListView.js index a072bb931152d8..c8d7a45a662a2c 100644 --- a/Libraries/Lists/MetroListView.js +++ b/Libraries/Lists/MetroListView.js @@ -95,7 +95,6 @@ class MetroListView extends React.Component { } setNativeProps(props: Object) { if (this._listRef) { - // $FlowFixMe Invalid prop usage this._listRef.setNativeProps(props); } } @@ -139,7 +138,6 @@ class MetroListView extends React.Component { } render() { return ( - // $FlowFixMe Invalid prop usage { renderRow={this._renderRow} renderFooter={this.props.FooterComponent && this._renderFooter} renderSectionHeader={this.props.sections && this._renderSectionHeader} - // $FlowFixMe Invalid prop usage renderSeparator={this.props.SeparatorComponent && this._renderSeparator} /> ); @@ -173,7 +170,6 @@ class MetroListView extends React.Component { } else { invariant(!props.sections, 'Cannot have both sections and items props.'); return { - // $FlowFixMe Invalid prop usage ds: state.ds.cloneWithRows(props.items), sectionHeaderData, }; diff --git a/Libraries/Lists/SectionList.js b/Libraries/Lists/SectionList.js index 2590e28aadbde7..17a4f84711e0ab 100644 --- a/Libraries/Lists/SectionList.js +++ b/Libraries/Lists/SectionList.js @@ -284,7 +284,6 @@ class SectionList> extends React.PureComponent< */ recordInteraction() { const listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); - // $FlowFixMe Invalid prop usage listRef && listRef.recordInteraction(); } @@ -295,7 +294,6 @@ class SectionList> extends React.PureComponent< */ flashScrollIndicators() { const listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); - // $FlowFixMe Invalid prop usage listRef && listRef.flashScrollIndicators(); } @@ -305,7 +303,6 @@ class SectionList> extends React.PureComponent< getScrollResponder(): ?ScrollView { const listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); if (listRef) { - // $FlowFixMe Invalid prop usage return listRef.getScrollResponder(); } } @@ -313,7 +310,6 @@ class SectionList> extends React.PureComponent< getScrollableNode() { const listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); if (listRef) { - // $FlowFixMe Invalid prop usage return listRef.getScrollableNode(); } } @@ -321,7 +317,6 @@ class SectionList> extends React.PureComponent< setNativeProps(props: Object) { const listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); if (listRef) { - // $FlowFixMe Invalid prop usage listRef.setNativeProps(props); } }