Fixed headerLeft and headerRight props (#26881)

* Update index.d.ts

Fixed headerLeft and headerRight types

* Update index.d.ts
This commit is contained in:
Jinesh Shah
2018-07-05 10:14:11 -07:00
committed by Mohamed Hegazy
parent 96b2b69caa
commit eb868d6677
+7 -5
View File
@@ -395,22 +395,24 @@ export interface NavigationSwitchRouterConfig {
export interface NavigationStackScreenOptions {
title?: string;
header?:
| (
| React.ReactElement<any>
| ((headerProps: HeaderProps) => React.ReactElement<any>))
| React.ReactElement<any>
| ((headerProps: HeaderProps) => React.ReactElement<any>)
| null;
headerTransparent?: boolean;
headerTitle?: string | React.ReactElement<any>;
headerTitleStyle?: StyleProp<TextStyle>;
headerTitleAllowFontScaling?: boolean;
headerTintColor?: string;
headerLeft?: React.ReactElement<any>;
headerLeft?:
| React.ReactElement<any>
| ((backButtonProps: HeaderBackButtonProps) => React.ReactElement<any>)
| null;
headerBackTitle?: string | null;
headerBackImage?: React.ReactElement<any>;
headerTruncatedBackTitle?: string;
headerBackTitleStyle?: StyleProp<TextStyle>;
headerPressColorAndroid?: string;
headerRight?: React.ReactElement<any>;
headerRight?: React.ReactElement<any> | null;
headerStyle?: StyleProp<ViewStyle>;
headerForceInset?: HeaderForceInset;
headerBackground?: React.ReactNode | React.ReactType;