Skip to content

Commit 91c4b03

Browse files
elicwhitefacebook-github-bot
authored andcommitted
Remove unused suppressions
Reviewed By: yungsters Differential Revision: D7982027 fbshipit-source-id: 00e538dc678275495e097d9cd14a0a2643ebaefd
1 parent b127662 commit 91c4b03

File tree

6 files changed

+0
-15
lines changed

6 files changed

+0
-15
lines changed

Libraries/Components/ScrollView/ScrollView.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ const ScrollView = createReactClass({
334334
* - `false`, deprecated, use 'never' instead
335335
* - `true`, deprecated, use 'always' instead
336336
*/
337-
// $FlowFixMe
338337
keyboardShouldPersistTaps: PropTypes.oneOf([
339338
'always',
340339
'never',

Libraries/Experimental/SwipeableRow/SwipeableListView.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,9 @@ class SwipeableListView extends React.Component<Props, State> {
117117

118118
render(): React.Node {
119119
return (
120-
// $FlowFixMe Invalid prop usage
121120
<ListView
122121
{...this.props}
123122
ref={ref => {
124-
// $FlowFixMe Invalid prop usage
125123
this._listViewRef = ref;
126124
}}
127125
dataSource={this.state.dataSource.getDataSource()}

Libraries/Lists/FlatList.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,6 @@ class FlatList<ItemT> extends React.PureComponent<Props<ItemT>, void> {
476476
_virtualizedListPairs: Array<ViewabilityConfigCallbackPair> = [];
477477

478478
_captureRef = ref => {
479-
// $FlowFixMe Invalid prop usage
480479
this._listRef = ref;
481480
};
482481

Libraries/Lists/ListView/ListView.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,10 +516,8 @@ const ListView = createReactClass({
516516
if (props.removeClippedSubviews === undefined) {
517517
props.removeClippedSubviews = true;
518518
}
519-
// $FlowFixMe Invalid prop usage
520519
Object.assign(props, {
521520
onScroll: this._onScroll,
522-
// $FlowFixMe Invalid prop usage
523521
stickyHeaderIndices: this.props.stickyHeaderIndices.concat(
524522
stickySectionHeaderIndices,
525523
),

Libraries/Lists/MetroListView.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ class MetroListView extends React.Component<Props, $FlowFixMeState> {
9595
}
9696
setNativeProps(props: Object) {
9797
if (this._listRef) {
98-
// $FlowFixMe Invalid prop usage
9998
this._listRef.setNativeProps(props);
10099
}
101100
}
@@ -139,15 +138,13 @@ class MetroListView extends React.Component<Props, $FlowFixMeState> {
139138
}
140139
render() {
141140
return (
142-
// $FlowFixMe Invalid prop usage
143141
<ListView
144142
{...this.props}
145143
dataSource={this.state.ds}
146144
ref={this._captureRef}
147145
renderRow={this._renderRow}
148146
renderFooter={this.props.FooterComponent && this._renderFooter}
149147
renderSectionHeader={this.props.sections && this._renderSectionHeader}
150-
// $FlowFixMe Invalid prop usage
151148
renderSeparator={this.props.SeparatorComponent && this._renderSeparator}
152149
/>
153150
);
@@ -173,7 +170,6 @@ class MetroListView extends React.Component<Props, $FlowFixMeState> {
173170
} else {
174171
invariant(!props.sections, 'Cannot have both sections and items props.');
175172
return {
176-
// $FlowFixMe Invalid prop usage
177173
ds: state.ds.cloneWithRows(props.items),
178174
sectionHeaderData,
179175
};

Libraries/Lists/SectionList.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ class SectionList<SectionT: SectionBase<any>> extends React.PureComponent<
284284
*/
285285
recordInteraction() {
286286
const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();
287-
// $FlowFixMe Invalid prop usage
288287
listRef && listRef.recordInteraction();
289288
}
290289

@@ -295,7 +294,6 @@ class SectionList<SectionT: SectionBase<any>> extends React.PureComponent<
295294
*/
296295
flashScrollIndicators() {
297296
const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();
298-
// $FlowFixMe Invalid prop usage
299297
listRef && listRef.flashScrollIndicators();
300298
}
301299

@@ -305,23 +303,20 @@ class SectionList<SectionT: SectionBase<any>> extends React.PureComponent<
305303
getScrollResponder(): ?ScrollView {
306304
const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();
307305
if (listRef) {
308-
// $FlowFixMe Invalid prop usage
309306
return listRef.getScrollResponder();
310307
}
311308
}
312309

313310
getScrollableNode() {
314311
const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();
315312
if (listRef) {
316-
// $FlowFixMe Invalid prop usage
317313
return listRef.getScrollableNode();
318314
}
319315
}
320316

321317
setNativeProps(props: Object) {
322318
const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();
323319
if (listRef) {
324-
// $FlowFixMe Invalid prop usage
325320
listRef.setNativeProps(props);
326321
}
327322
}

0 commit comments

Comments
 (0)