Update react-native.d.ts (#12050)

* Update react-native.d.ts

Added additional props to NavigationHeaderProps.

* Update react-native.d.ts

Fixed indentation.

* Added more NavigationHeaderProps.
Also updated type for NavigationHeaderStatic.Title.
This commit is contained in:
Chris Fisher
2016-10-25 23:58:26 +09:00
committed by Masahiro Wakame
parent d290d688b3
commit b424d28ab1
+6 -1
View File
@@ -7502,11 +7502,16 @@ declare namespace __React {
export interface NavigationHeaderProps {
renderTitleComponent?(props: Object): JSX.Element
renderLeftComponent?(props: Object): JSX.Element
renderRightComponent?(props: Object): JSX.Element
onNavigateBack(): void
style?: ViewStyle
viewProps?: any
statusBarHeight?: number | NavigationAnimatedValue
}
export interface NavigationHeaderStatic extends React.ComponentClass<NavigationHeaderProps> {
Title: JSX.Element
Title: () => JSX.ElementClass
HEIGHT: number
}