Skip to content

Commit

Permalink
Remove unused suppressions
Browse files Browse the repository at this point in the history
Reviewed By: yungsters

Differential Revision: D7982027

fbshipit-source-id: 00e538dc678275495e097d9cd14a0a2643ebaefd
  • Loading branch information
elicwhite authored and facebook-github-bot committed May 12, 2018
1 parent b127662 commit 91c4b03
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion Libraries/Components/ScrollView/ScrollView.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,6 @@ const ScrollView = createReactClass({
* - `false`, deprecated, use 'never' instead
* - `true`, deprecated, use 'always' instead
*/
// $FlowFixMe
keyboardShouldPersistTaps: PropTypes.oneOf([
'always',
'never',
Expand Down
2 changes: 0 additions & 2 deletions Libraries/Experimental/SwipeableRow/SwipeableListView.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,9 @@ class SwipeableListView extends React.Component<Props, State> {

render(): React.Node {
return (
// $FlowFixMe Invalid prop usage
<ListView
{...this.props}
ref={ref => {
// $FlowFixMe Invalid prop usage
this._listViewRef = ref;
}}
dataSource={this.state.dataSource.getDataSource()}
Expand Down
1 change: 0 additions & 1 deletion Libraries/Lists/FlatList.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,6 @@ class FlatList<ItemT> extends React.PureComponent<Props<ItemT>, void> {
_virtualizedListPairs: Array<ViewabilityConfigCallbackPair> = [];

_captureRef = ref => {
// $FlowFixMe Invalid prop usage
this._listRef = ref;
};

Expand Down
2 changes: 0 additions & 2 deletions Libraries/Lists/ListView/ListView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down
4 changes: 0 additions & 4 deletions Libraries/Lists/MetroListView.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ class MetroListView extends React.Component<Props, $FlowFixMeState> {
}
setNativeProps(props: Object) {
if (this._listRef) {
// $FlowFixMe Invalid prop usage
this._listRef.setNativeProps(props);
}
}
Expand Down Expand Up @@ -139,15 +138,13 @@ class MetroListView extends React.Component<Props, $FlowFixMeState> {
}
render() {
return (
// $FlowFixMe Invalid prop usage
<ListView
{...this.props}
dataSource={this.state.ds}
ref={this._captureRef}
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}
/>
);
Expand All @@ -173,7 +170,6 @@ class MetroListView extends React.Component<Props, $FlowFixMeState> {
} else {
invariant(!props.sections, 'Cannot have both sections and items props.');
return {
// $FlowFixMe Invalid prop usage
ds: state.ds.cloneWithRows(props.items),
sectionHeaderData,
};
Expand Down
5 changes: 0 additions & 5 deletions Libraries/Lists/SectionList.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ class SectionList<SectionT: SectionBase<any>> extends React.PureComponent<
*/
recordInteraction() {
const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();
// $FlowFixMe Invalid prop usage
listRef && listRef.recordInteraction();
}

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

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

getScrollableNode() {
const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();
if (listRef) {
// $FlowFixMe Invalid prop usage
return listRef.getScrollableNode();
}
}

setNativeProps(props: Object) {
const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();
if (listRef) {
// $FlowFixMe Invalid prop usage
listRef.setNativeProps(props);
}
}
Expand Down

0 comments on commit 91c4b03

Please sign in to comment.