diff --git a/types/react-navigation/index.d.ts b/types/react-navigation/index.d.ts index b58f3778ae..02dc72d98f 100644 --- a/types/react-navigation/index.d.ts +++ b/types/react-navigation/index.d.ts @@ -395,22 +395,24 @@ export interface NavigationSwitchRouterConfig { export interface NavigationStackScreenOptions { title?: string; header?: - | ( - | React.ReactElement - | ((headerProps: HeaderProps) => React.ReactElement)) + | React.ReactElement + | ((headerProps: HeaderProps) => React.ReactElement) | null; headerTransparent?: boolean; headerTitle?: string | React.ReactElement; headerTitleStyle?: StyleProp; headerTitleAllowFontScaling?: boolean; headerTintColor?: string; - headerLeft?: React.ReactElement; + headerLeft?: + | React.ReactElement + | ((backButtonProps: HeaderBackButtonProps) => React.ReactElement) + | null; headerBackTitle?: string | null; headerBackImage?: React.ReactElement; headerTruncatedBackTitle?: string; headerBackTitleStyle?: StyleProp; headerPressColorAndroid?: string; - headerRight?: React.ReactElement; + headerRight?: React.ReactElement | null; headerStyle?: StyleProp; headerForceInset?: HeaderForceInset; headerBackground?: React.ReactNode | React.ReactType;