expo-router
Version:
Expo Router is a file-based router for React Native and web applications.
7 lines (6 loc) • 469 B
TypeScript
import type { UrlObject } from '../global-state/getRouteInfoFromState';
import type { LinkToOptions } from '../global-state/routing';
import type { Href } from '../types';
/** Resolve an href object into a fully qualified, relative href. */
export declare const resolveHref: (href: Href | string) => string;
export declare function resolveHrefStringWithSegments(href: string, { segments, params }?: Partial<UrlObject>, { relativeToDirectory }?: LinkToOptions): string;