Remove unused suppressions

Reviewed By: yungsters

Differential Revision: D7982027

fbshipit-source-id: 00e538dc678275495e097d9cd14a0a2643ebaefd
This commit is contained in:
Eli White 2018-05-12 10:25:21 -07:00 committed by Facebook Github Bot
parent b127662279
commit 91c4b0357a
6 changed files with 0 additions and 15 deletions

View File

@ -334,7 +334,6 @@ const ScrollView = createReactClass({
* - `false`, deprecated, use 'never' instead * - `false`, deprecated, use 'never' instead
* - `true`, deprecated, use 'always' instead * - `true`, deprecated, use 'always' instead
*/ */
// $FlowFixMe
keyboardShouldPersistTaps: PropTypes.oneOf([ keyboardShouldPersistTaps: PropTypes.oneOf([
'always', 'always',
'never', 'never',

View File

@ -117,11 +117,9 @@ class SwipeableListView extends React.Component<Props, State> {
render(): React.Node { render(): React.Node {
return ( return (
// $FlowFixMe Invalid prop usage
<ListView <ListView
{...this.props} {...this.props}
ref={ref => { ref={ref => {
// $FlowFixMe Invalid prop usage
this._listViewRef = ref; this._listViewRef = ref;
}} }}
dataSource={this.state.dataSource.getDataSource()} dataSource={this.state.dataSource.getDataSource()}

View File

@ -476,7 +476,6 @@ class FlatList<ItemT> extends React.PureComponent<Props<ItemT>, void> {
_virtualizedListPairs: Array<ViewabilityConfigCallbackPair> = []; _virtualizedListPairs: Array<ViewabilityConfigCallbackPair> = [];
_captureRef = ref => { _captureRef = ref => {
// $FlowFixMe Invalid prop usage
this._listRef = ref; this._listRef = ref;
}; };

View File

@ -516,10 +516,8 @@ const ListView = createReactClass({
if (props.removeClippedSubviews === undefined) { if (props.removeClippedSubviews === undefined) {
props.removeClippedSubviews = true; props.removeClippedSubviews = true;
} }
// $FlowFixMe Invalid prop usage
Object.assign(props, { Object.assign(props, {
onScroll: this._onScroll, onScroll: this._onScroll,
// $FlowFixMe Invalid prop usage
stickyHeaderIndices: this.props.stickyHeaderIndices.concat( stickyHeaderIndices: this.props.stickyHeaderIndices.concat(
stickySectionHeaderIndices, stickySectionHeaderIndices,
), ),

View File

@ -95,7 +95,6 @@ class MetroListView extends React.Component<Props, $FlowFixMeState> {
} }
setNativeProps(props: Object) { setNativeProps(props: Object) {
if (this._listRef) { if (this._listRef) {
// $FlowFixMe Invalid prop usage
this._listRef.setNativeProps(props); this._listRef.setNativeProps(props);
} }
} }
@ -139,7 +138,6 @@ class MetroListView extends React.Component<Props, $FlowFixMeState> {
} }
render() { render() {
return ( return (
// $FlowFixMe Invalid prop usage
<ListView <ListView
{...this.props} {...this.props}
dataSource={this.state.ds} dataSource={this.state.ds}
@ -147,7 +145,6 @@ class MetroListView extends React.Component<Props, $FlowFixMeState> {
renderRow={this._renderRow} renderRow={this._renderRow}
renderFooter={this.props.FooterComponent && this._renderFooter} renderFooter={this.props.FooterComponent && this._renderFooter}
renderSectionHeader={this.props.sections && this._renderSectionHeader} renderSectionHeader={this.props.sections && this._renderSectionHeader}
// $FlowFixMe Invalid prop usage
renderSeparator={this.props.SeparatorComponent && this._renderSeparator} renderSeparator={this.props.SeparatorComponent && this._renderSeparator}
/> />
); );
@ -173,7 +170,6 @@ class MetroListView extends React.Component<Props, $FlowFixMeState> {
} else { } else {
invariant(!props.sections, 'Cannot have both sections and items props.'); invariant(!props.sections, 'Cannot have both sections and items props.');
return { return {
// $FlowFixMe Invalid prop usage
ds: state.ds.cloneWithRows(props.items), ds: state.ds.cloneWithRows(props.items),
sectionHeaderData, sectionHeaderData,
}; };

View File

@ -284,7 +284,6 @@ class SectionList<SectionT: SectionBase<any>> extends React.PureComponent<
*/ */
recordInteraction() { recordInteraction() {
const listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();
// $FlowFixMe Invalid prop usage
listRef && listRef.recordInteraction(); listRef && listRef.recordInteraction();
} }
@ -295,7 +294,6 @@ class SectionList<SectionT: SectionBase<any>> extends React.PureComponent<
*/ */
flashScrollIndicators() { flashScrollIndicators() {
const listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();
// $FlowFixMe Invalid prop usage
listRef && listRef.flashScrollIndicators(); listRef && listRef.flashScrollIndicators();
} }
@ -305,7 +303,6 @@ class SectionList<SectionT: SectionBase<any>> extends React.PureComponent<
getScrollResponder(): ?ScrollView { getScrollResponder(): ?ScrollView {
const listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();
if (listRef) { if (listRef) {
// $FlowFixMe Invalid prop usage
return listRef.getScrollResponder(); return listRef.getScrollResponder();
} }
} }
@ -313,7 +310,6 @@ class SectionList<SectionT: SectionBase<any>> extends React.PureComponent<
getScrollableNode() { getScrollableNode() {
const listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();
if (listRef) { if (listRef) {
// $FlowFixMe Invalid prop usage
return listRef.getScrollableNode(); return listRef.getScrollableNode();
} }
} }
@ -321,7 +317,6 @@ class SectionList<SectionT: SectionBase<any>> extends React.PureComponent<
setNativeProps(props: Object) { setNativeProps(props: Object) {
const listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();
if (listRef) { if (listRef) {
// $FlowFixMe Invalid prop usage
listRef.setNativeProps(props); listRef.setNativeProps(props);
} }
} }