mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
explicit type args in react-native-github
Reviewed By: vjeux Differential Revision: D3342856 fbshipit-source-id: ba5a4d5529fc9d1d1efe98cc175d718c5f044a5b
This commit is contained in:
committed by
Facebook Github Bot 9
parent
caa2baee9d
commit
ac5636dd59
@@ -119,7 +119,7 @@ class NavigationHeader extends React.Component<DefaultProps, Props, any> {
|
||||
);
|
||||
}
|
||||
|
||||
render(): ReactElement {
|
||||
render(): ReactElement<any> {
|
||||
const { scenes, style, viewProps } = this.props;
|
||||
|
||||
const scenesProps = scenes.map(scene => {
|
||||
@@ -137,7 +137,7 @@ class NavigationHeader extends React.Component<DefaultProps, Props, any> {
|
||||
);
|
||||
}
|
||||
|
||||
_renderLeft(props: NavigationSceneRendererProps): ?ReactElement {
|
||||
_renderLeft(props: NavigationSceneRendererProps): ?ReactElement<any> {
|
||||
return this._renderSubView(
|
||||
props,
|
||||
'left',
|
||||
@@ -146,7 +146,7 @@ class NavigationHeader extends React.Component<DefaultProps, Props, any> {
|
||||
);
|
||||
}
|
||||
|
||||
_renderTitle(props: NavigationSceneRendererProps): ?ReactElement {
|
||||
_renderTitle(props: NavigationSceneRendererProps): ?ReactElement<any> {
|
||||
return this._renderSubView(
|
||||
props,
|
||||
'title',
|
||||
@@ -155,7 +155,7 @@ class NavigationHeader extends React.Component<DefaultProps, Props, any> {
|
||||
);
|
||||
}
|
||||
|
||||
_renderRight(props: NavigationSceneRendererProps): ?ReactElement {
|
||||
_renderRight(props: NavigationSceneRendererProps): ?ReactElement<any> {
|
||||
return this._renderSubView(
|
||||
props,
|
||||
'right',
|
||||
@@ -169,7 +169,7 @@ class NavigationHeader extends React.Component<DefaultProps, Props, any> {
|
||||
name: SubViewName,
|
||||
renderer: NavigationSceneRenderer,
|
||||
styleInterpolator: NavigationStyleInterpolator,
|
||||
): ?ReactElement {
|
||||
): ?ReactElement<any> {
|
||||
const {
|
||||
scene,
|
||||
navigationState,
|
||||
|
||||
Reference in New Issue
Block a user