34 lines
1.7 KiB
TypeScript
34 lines
1.7 KiB
TypeScript
import { type NavigationContainerRef, type ParamListBase } from '@react-navigation/native';
|
|
import { LinkingOptions } from '@react-navigation/native';
|
|
import * as React from 'react';
|
|
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/native").NavigationRoute<ParamListBase, string>[];
|
|
type: string;
|
|
stale: false;
|
|
}>, "stale" | "routes">> & Readonly<{
|
|
stale?: true;
|
|
routes: import("@react-navigation/native").PartialRoute<import("@react-navigation/native").Route<string, object | undefined>>[];
|
|
}> & {
|
|
state?: Partial<Omit<Readonly<{
|
|
key: string;
|
|
index: number;
|
|
routeNames: string[];
|
|
history?: unknown[];
|
|
routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
|
|
type: string;
|
|
stale: false;
|
|
}>, "stale" | "routes">> & Readonly<{
|
|
stale?: true;
|
|
routes: import("@react-navigation/native").PartialRoute<import("@react-navigation/native").Route<string, object | undefined>>[];
|
|
}> & /*elided*/ any;
|
|
}) | undefined>;
|
|
};
|
|
export declare function getInitialURLWithTimeout(): string | null | Promise<string | null>;
|
|
export {};
|
|
//# sourceMappingURL=useLinking.native.d.ts.map
|