UNPKG

react-navigation-stack

Version:
12 lines (11 loc) 755 B
/// <reference types="react" /> import { NavigationRoute, NavigationParams, NavigationScreenConfig, SupportedThemes } from 'react-navigation'; import { 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>; };