UNPKG

@react-navigation/native

Version:

React Native integration for React Navigation

33 lines 1.64 kB
import { type NavigationContainerRef, type ParamListBase } from '@react-navigation/core'; import * as React from 'react'; import type { LinkingOptions } from './types'; type Options = LinkingOptions<ParamListBase>; export declare function useLinking(ref: React.RefObject<NavigationContainerRef<ParamListBase>>, { enabled, prefixes, filter, config, getInitialURL, subscribe, getStateFromPath, getActionFromState, }: Options, onUnhandledLinking: (lastUnhandledLining: string | undefined) => void): { getInitialState: () => PromiseLike<(Partial<Omit<Readonly<{ key: string; index: number; routeNames: string[]; history?: unknown[]; routes: import("@react-navigation/routers").NavigationRoute<ParamListBase, string>[]; type: string; stale: false; }>, "stale" | "routes">> & Readonly<{ stale?: true; routes: import("@react-navigation/routers").PartialRoute<import("@react-navigation/routers").Route<string, object | undefined>>[]; }> & { state?: Partial<Omit<Readonly<{ key: string; index: number; routeNames: string[]; history?: unknown[]; routes: import("@react-navigation/routers").NavigationRoute<ParamListBase, string>[]; type: string; stale: false; }>, "stale" | "routes">> & Readonly<{ stale?: true; routes: import("@react-navigation/routers").PartialRoute<import("@react-navigation/routers").Route<string, object | undefined>>[]; }> & any; }) | undefined>; }; export {}; //# sourceMappingURL=useLinking.native.d.ts.map