UNPKG

733 BTypeScriptView Raw
1import type { NavigationRoute, NavigationParams, NavigationScreenConfig, SupportedThemes } from 'react-navigation';
2import type { StackNavigationProp, StackNavigationOptions } from './vendor/types';
3export declare type NavigationStackScreenProps<Params = NavigationParams, ScreenProps = unknown> = {
4 theme: SupportedThemes;
5 navigation: StackNavigationProp<NavigationRoute, Params>;
6 screenProps: ScreenProps;
7};
8export declare type NavigationStackScreenComponent<Params = NavigationParams, ScreenProps = unknown> = React.ComponentType<NavigationStackScreenProps<Params, ScreenProps>> & {
9 navigationOptions?: NavigationScreenConfig<StackNavigationOptions, StackNavigationProp<NavigationRoute, Params>, ScreenProps>;
10};