Remove some Flow annotations

This commit is contained in:
Bettenbuk Zoltan
2019-03-21 17:38:29 +01:00
committed by Zoltan Bettenbuk
parent 19e8e8710a
commit 2a5adfc601
165 changed files with 211 additions and 252 deletions

View File

@@ -2,10 +2,10 @@
import React, { Component } from 'react';
import { TouchableOpacity } from 'react-native';
import { connect } from 'react-redux';
import { ColorSchemeRegistry } from '../../../color-scheme';
import { Icon } from '../../../font-icons';
import { connect } from '../../../redux';
/**
* The type of the React {@code Component} props of {@link BackButton}
@@ -68,5 +68,4 @@ function _mapStateToProps(state) {
};
}
// $FlowExpectedError
export default connect(_mapStateToProps)(BackButton);

View File

@@ -2,10 +2,10 @@
import React, { Component } from 'react';
import { Text, TouchableOpacity } from 'react-native';
import { connect } from 'react-redux';
import { ColorSchemeRegistry } from '../../../color-scheme';
import { translate } from '../../../i18n';
import { connect } from '../../../redux';
/**
* The type of the React {@code Component} props of {@link ForwardButton}

View File

@@ -2,9 +2,9 @@
import React, { Component, type Node } from 'react';
import { Platform, SafeAreaView, StatusBar, View } from 'react-native';
import { connect } from 'react-redux';
import { ColorSchemeRegistry } from '../../../color-scheme';
import { connect } from '../../../redux';
import { isDarkColor } from '../../../styles';
import { HEADER_PADDING } from './headerstyles';
@@ -165,5 +165,4 @@ function _mapStateToProps(state) {
};
}
// $FlowExpectedError
export default connect(_mapStateToProps)(Header);

View File

@@ -2,10 +2,10 @@
import React, { Component } from 'react';
import { Text, View } from 'react-native';
import { connect } from 'react-redux';
import { ColorSchemeRegistry } from '../../../color-scheme';
import { translate } from '../../../i18n';
import { connect } from '../../../redux';
/**
* The type of the React {@code Component} props of {@link HeaderLabel}

View File

@@ -11,7 +11,7 @@ type Props = {
* Prop to set the size of the indicator. This is the same as the
* prop of the native component.
*/
size: 'large' | 'medium' | 'small'
size: 'large' | 'small'
};
/**
@@ -40,7 +40,7 @@ export default class LoadingIndicator extends Component<Props> {
size
};
return (// $FlowFixMe
return (
<ActivityIndicator
animating = { true }
color = { ColorPalette.white }

View File

@@ -2,9 +2,9 @@
import React, { Component } from 'react';
import { SafeAreaView, Text, TouchableOpacity, View } from 'react-native';
import { connect } from 'react-redux';
import { Icon } from '../../../font-icons';
import { connect } from '../../../redux';
import styles from './styles';
@@ -283,5 +283,4 @@ class PagedList extends Component<Props, State> {
}
}
// $FlowExpectedError
export default connect()(PagedList);