mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-21 10:34:31 +08:00
Cleanup: Prefer React.Element over React$?Element
Reviewed By: vjeux Differential Revision: D4013049 fbshipit-source-id: 18a447fdbc584418d6a51770363bcd221e7fb7dc
This commit is contained in:
committed by
Facebook Github Bot
parent
beca25083a
commit
e8198aed8d
@@ -202,7 +202,7 @@ class NavigationCardStack extends React.Component<DefaultProps, Props, void> {
|
||||
this._renderScene = this._renderScene.bind(this);
|
||||
}
|
||||
|
||||
render(): ReactElement<any> {
|
||||
render(): React.Element<any> {
|
||||
return (
|
||||
<NavigationTransitioner
|
||||
navigationState={this.props.navigationState}
|
||||
@@ -212,7 +212,7 @@ class NavigationCardStack extends React.Component<DefaultProps, Props, void> {
|
||||
);
|
||||
}
|
||||
|
||||
_render(props: NavigationTransitionProps): ReactElement<any> {
|
||||
_render(props: NavigationTransitionProps): React.Element<any> {
|
||||
const {
|
||||
renderHeader
|
||||
} = this.props;
|
||||
@@ -237,7 +237,7 @@ class NavigationCardStack extends React.Component<DefaultProps, Props, void> {
|
||||
);
|
||||
}
|
||||
|
||||
_renderScene(props: NavigationSceneRendererProps): ReactElement<any> {
|
||||
_renderScene(props: NavigationSceneRendererProps): React.Element<any> {
|
||||
const isVertical = this.props.direction === 'vertical';
|
||||
|
||||
const style = isVertical ?
|
||||
|
||||
Reference in New Issue
Block a user