react-navigation-stack
Version:
Stack navigator component for React Navigation
11 lines (10 loc) • 733 B
TypeScript
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>;
};