expo-router
Version:
Expo Router is a file-based router for React Native and web applications.
9 lines (8 loc) • 480 B
TypeScript
import { type NavigationProp, type NavigationState } from '../react-navigation/native';
type GenericNavigation = NavigationProp<ReactNavigation.RootParamList> & {
getState(): NavigationState | undefined;
};
/** Returns a callback which is invoked when the navigation state has loaded. */
export declare function useLoadedNavigation(): (fn: (navigation: GenericNavigation) => void) => void;
export declare function useOptionalNavigation(): GenericNavigation | null;
export {};