UNPKG

expo-router

Version:

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

10 lines (9 loc) • 678 B
import { getPathFromState } from '../fork/getPathFromState'; import { getStateFromPath } from '../fork/getStateFromPath'; import type { StoreRedirects } from '../global-state/types'; import type { LinkingOptions } from '../react-navigation/native'; import type { NativeIntent } from '../types'; export declare function getInitialURL(): ReturnType<NonNullable<LinkingOptions<Record<string, unknown>>['getInitialURL']>>; export declare function getRootURL(): string; export declare function subscribe(nativeLinking: NativeIntent | undefined, redirects: StoreRedirects[] | undefined): (listener: (url: string) => void) => () => void; export { getStateFromPath, getPathFromState };