mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-08 07:53:15 +08:00
React.Element<any> » React.Element<*>
Reviewed By: yungsters Differential Revision: D4027388 fbshipit-source-id: 5bc178eab1ab72283622b4b7d418f9fd43ec0792
This commit is contained in:
committed by
Facebook Github Bot
parent
8e2d4cc680
commit
e58d17e68b
@@ -63,7 +63,7 @@ type Props = {
|
||||
class UIExplorerExampleList extends React.Component {
|
||||
props: Props
|
||||
|
||||
render(): ?React.Element<any> {
|
||||
render(): ?React.Element<*> {
|
||||
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(): ?React.Element<any> {
|
||||
_renderTitleRow(): ?React.Element<*> {
|
||||
if (!this.props.displayTitleRow) {
|
||||
return null;
|
||||
}
|
||||
@@ -106,7 +106,7 @@ class UIExplorerExampleList extends React.Component {
|
||||
);
|
||||
}
|
||||
|
||||
_renderTextInput(): ?React.Element<any> {
|
||||
_renderTextInput(): ?React.Element<*> {
|
||||
if (this.props.disableSearch) {
|
||||
return null;
|
||||
}
|
||||
@@ -129,7 +129,7 @@ class UIExplorerExampleList extends React.Component {
|
||||
);
|
||||
}
|
||||
|
||||
_renderSectionHeader(data: any, section: string): ?React.Element<any> {
|
||||
_renderSectionHeader(data: any, section: string): ?React.Element<*> {
|
||||
return (
|
||||
<Text style={styles.sectionHeader}>
|
||||
{section.toUpperCase()}
|
||||
@@ -137,7 +137,7 @@ class UIExplorerExampleList extends React.Component {
|
||||
);
|
||||
}
|
||||
|
||||
_renderExampleRow(example: {key: string, module: Object}): ?React.Element<any> {
|
||||
_renderExampleRow(example: {key: string, module: Object}): ?React.Element<*> {
|
||||
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): ?React.Element<any> {
|
||||
_renderRow(title: string, description: string, key: ?string, handler: ?Function): ?React.Element<*> {
|
||||
return (
|
||||
<View key={key || title}>
|
||||
<TouchableHighlight onPress={handler}>
|
||||
|
||||
Reference in New Issue
Block a user