UNPKG

react-navigation-stack

Version:
11 lines (10 loc) 733 B
import type { NavigationRoute, NavigationParams, NavigationScreenConfig, SupportedThemes } from 'react-navigation'; import type { StackNavigationProp, StackNavigationOptions } from './vendor/types'; export declare type NavigationStackScreenProps<Params = NavigationParams, ScreenProps = unknown> = { theme: SupportedThemes; navigation: StackNavigationProp<NavigationRoute, Params>; screenProps: ScreenProps; }; export declare type NavigationStackScreenComponent<Params = NavigationParams, ScreenProps = unknown> = React.ComponentType<NavigationStackScreenProps<Params, ScreenProps>> & { navigationOptions?: NavigationScreenConfig<StackNavigationOptions, StackNavigationProp<NavigationRoute, Params>, ScreenProps>; };