Cleanup: Prefer React.Element over React$?Element

Reviewed By: vjeux

Differential Revision: D4013049

fbshipit-source-id: 18a447fdbc584418d6a51770363bcd221e7fb7dc
This commit is contained in:
Tim Yung authored and Facebook Github Bot committed 2016-10-14 08:59:37 -07:00
1 parent beca25083a
commit e8198aed8d
66 files changed
+161 -161

No files matched your search

@@ -63,7 +63,7 @@ type Props = {
class UIExplorerExampleList extends React.Component {
props: Props
render(): ?ReactElement<any> {
render(): ?React.Element<any> {
const filterText = this.props.persister.state.filter;
const filterRegex = new RegExp(String(filterText), 'i');
const filter = (example) => filterRegex.test(example.module.title);
@@ -90,7 +90,7 @@ class UIExplorerExampleList extends React.Component {
);
}
_renderTitleRow(): ?ReactElement<any> {
_renderTitleRow(): ?React.Element<any> {
if (!this.props.displayTitleRow) {
return null;
}
@@ -106,7 +106,7 @@ class UIExplorerExampleList extends React.Component {
);
}
_renderTextInput(): ?ReactElement<any> {
_renderTextInput(): ?React.Element<any> {
if (this.props.disableSearch) {
return null;
}
@@ -129,7 +129,7 @@ class UIExplorerExampleList extends React.Component {
);
}
_renderSectionHeader(data: any, section: string): ?ReactElement<any> {
_renderSectionHeader(data: any, section: string): ?React.Element<any> {
return (
<Text style={styles.sectionHeader}>
{section.toUpperCase()}
@@ -137,7 +137,7 @@ class UIExplorerExampleList extends React.Component {
);
}
_renderExampleRow(example: {key: string, module: Object}): ?ReactElement<any> {
_renderExampleRow(example: {key: string, module: Object}): ?React.Element<any> {
return this._renderRow(
example.module.title,
example.module.description,
@@ -146,7 +146,7 @@ class UIExplorerExampleList extends React.Component {
);
}
_renderRow(title: string, description: string, key: ?string, handler: ?Function): ?ReactElement<any> {
_renderRow(title: string, description: string, key: ?string, handler: ?Function): ?React.Element<any> {
return (
<View key={key || title}>
<TouchableHighlight onPress={handler}>