mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 08:05:34 +00:00
Remove unused suppressions
Reviewed By: yungsters Differential Revision: D7982027 fbshipit-source-id: 00e538dc678275495e097d9cd14a0a2643ebaefd
This commit is contained in:
parent
b127662279
commit
91c4b0357a
@ -334,7 +334,6 @@ const ScrollView = createReactClass({
|
||||
* - `false`, deprecated, use 'never' instead
|
||||
* - `true`, deprecated, use 'always' instead
|
||||
*/
|
||||
// $FlowFixMe
|
||||
keyboardShouldPersistTaps: PropTypes.oneOf([
|
||||
'always',
|
||||
'never',
|
||||
|
@ -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()}
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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,
|
||||
),
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
@ -139,7 +138,6 @@ class MetroListView extends React.Component<Props, $FlowFixMeState> {
|
||||
}
|
||||
render() {
|
||||
return (
|
||||
// $FlowFixMe Invalid prop usage
|
||||
<ListView
|
||||
{...this.props}
|
||||
dataSource={this.state.ds}
|
||||
@ -147,7 +145,6 @@ class MetroListView extends React.Component<Props, $FlowFixMeState> {
|
||||
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<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,
|
||||
};
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
@ -305,7 +303,6 @@ 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();
|
||||
}
|
||||
}
|
||||
@ -313,7 +310,6 @@ class SectionList<SectionT: SectionBase<any>> 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<SectionT: SectionBase<any>> extends React.PureComponent<
|
||||
setNativeProps(props: Object) {
|
||||
const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();
|
||||
if (listRef) {
|
||||
// $FlowFixMe Invalid prop usage
|
||||
listRef.setNativeProps(props);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user