UNPKG

@react-navigation/stack

Version:

Stack navigator component for iOS and Android with animated transitions and gestures

19 lines • 1.58 kB
import { type NavigatorTypeBagBase, type ParamListBase, type StackNavigationState, type StaticConfig, type TypedNavigator } from '@react-navigation/native'; import * as React from 'react'; import type { StackNavigationEventMap, StackNavigationOptions, StackNavigationProp, StackNavigatorProps } from '../types.js'; declare function StackNavigator({ id, initialRouteName, UNSTABLE_routeNamesChangeBehavior, children, layout, screenListeners, screenOptions, screenLayout, UNSTABLE_router, ...rest }: StackNavigatorProps): React.JSX.Element; export type StackTypeBag<ParamList extends ParamListBase = ParamListBase, NavigatorID extends string | undefined = string | undefined> = { ParamList: ParamList; NavigatorID: NavigatorID; State: StackNavigationState<ParamList>; ScreenOptions: StackNavigationOptions; EventMap: StackNavigationEventMap; NavigationList: { [RouteName in keyof ParamList]: StackNavigationProp<ParamList, RouteName, NavigatorID>; }; Navigator: typeof StackNavigator; }; export declare function createStackNavigator<const ParamList extends ParamListBase, const NavigatorID extends string | undefined = string | undefined, const TypeBag extends NavigatorTypeBagBase = StackTypeBag<ParamList, NavigatorID>, const Config extends StaticConfig<TypeBag> = StaticConfig<TypeBag>>(config?: Config): TypedNavigator<TypeBag, Config>; export declare const createStackScreen: import("@react-navigation/core").StaticScreenFactory<StackTypeBag<ParamListBase, string | undefined>>; export {}; //# sourceMappingURL=createStackNavigator.d.ts.map