explicit type args in react-native-github

Reviewed By: vjeux

Differential Revision: D3342856

fbshipit-source-id: ba5a4d5529fc9d1d1efe98cc175d718c5f044a5b
This commit is contained in:
Basil Hosmer
2016-05-24 18:28:26 -07:00
committed by Facebook Github Bot 9
parent caa2baee9d
commit ac5636dd59
67 changed files with 149 additions and 153 deletions
+6 -6
View File
@@ -62,7 +62,7 @@ class UIExplorerExampleList extends React.Component {
example;
}
render(): ?ReactElement {
render(): ?ReactElement<any> {
const filterText = this.props.filter || '';
const filterRegex = new RegExp(String(filterText), 'i');
const filter = (example) => filterRegex.test(example.module.title);
@@ -88,7 +88,7 @@ class UIExplorerExampleList extends React.Component {
);
}
_renderTitleRow(): ?ReactElement {
_renderTitleRow(): ?ReactElement<any> {
if (!this.props.displayTitleRow) {
return null;
}
@@ -104,7 +104,7 @@ class UIExplorerExampleList extends React.Component {
);
}
_renderTextInput(): ?ReactElement {
_renderTextInput(): ?ReactElement<any> {
if (this.props.disableSearch) {
return null;
}
@@ -126,7 +126,7 @@ class UIExplorerExampleList extends React.Component {
);
}
_renderSectionHeader(data: any, section: string): ?ReactElement {
_renderSectionHeader(data: any, section: string): ?ReactElement<any> {
return (
<Text style={styles.sectionHeader}>
{section.toUpperCase()}
@@ -134,7 +134,7 @@ class UIExplorerExampleList extends React.Component {
);
}
_renderExampleRow(example: {key: string, module: Object}): ?ReactElement {
_renderExampleRow(example: {key: string, module: Object}): ?ReactElement<any> {
return this._renderRow(
example.module.title,
example.module.description,
@@ -143,7 +143,7 @@ class UIExplorerExampleList extends React.Component {
);
}
_renderRow(title: string, description: string, key: ?string, handler: ?Function): ?ReactElement {
_renderRow(title: string, description: string, key: ?string, handler: ?Function): ?ReactElement<any> {
return (
<View key={key || title}>
<TouchableHighlight onPress={handler}>