UNPKG

450 BTypeScriptView Raw
1import type { NavigationState } from '@react-navigation/routers';
2import type { NavigationProp } from './types';
3/**
4 * Hook to access the navigation prop of the parent screen anywhere.
5 *
6 * @returns Navigation prop of the parent screen.
7 */
8export default function useNavigation<T = Omit<NavigationProp<ReactNavigation.RootParamList>, 'getState'> & {
9 getState(): NavigationState | undefined;
10}>(): T;
11//# sourceMappingURL=useNavigation.d.ts.map
\No newline at end of file