UNPKG

@react-navigation/core

Version:

Core utilities for building navigators

11 lines 450 B
import { type NavigationState } from '@react-navigation/routers'; import type { NavigationProp } from './types'; /** * Hook to access the navigation prop of the parent screen anywhere. * * @returns Navigation prop of the parent screen. */ export declare function useNavigation<T = Omit<NavigationProp<ReactNavigation.RootParamList>, 'getState'> & { getState(): NavigationState | undefined; }>(): T; //# sourceMappingURL=useNavigation.d.ts.map