UNPKG

expo-router

Version:

Expo Router is a file-based router for React Native and web applications.

27 lines (26 loc) • 1.1 kB
import { type RefObject } from 'react'; import { type LinkingOptions, type NavigationContainerRef, type ParamListBase } from '../react-navigation/native'; type Options = LinkingOptions<ParamListBase>; export declare function useLinking(_ref: RefObject<NavigationContainerRef<ParamListBase> | null>, { prefixes, config, getInitialURL, getStateFromPath, }: Options): { getInitialState: () => Readonly<{ key: string; routeKeySeq: number; index: number; routeNames: string[]; history?: unknown[]; routes: import("../react-navigation").NavigationRoute<ParamListBase, string>[]; type?: string; stale: false; }> | Promise<Readonly<{ key: string; routeKeySeq: number; index: number; routeNames: string[]; history?: unknown[]; routes: import("../react-navigation").NavigationRoute<ParamListBase, string>[]; type?: string; stale: false; }> | undefined> | undefined; }; export declare function getInitialURLWithTimeout(): string | null | Promise<string | null>; export {};