UNPKG

expo-router

Version:

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

13 lines (12 loc) • 519 B
import type { RouteNode } from './Route'; export type Screen = string | { path: string; screens: Record<string, Screen>; _route?: RouteNode; }; export declare function parseRouteSegments(segments: string): string; export declare function getReactNavigationScreensConfig(nodes: RouteNode[], metaOnly: boolean): Record<string, Screen>; export declare function getReactNavigationConfig(routeTree: RouteNode | null, metaOnly: boolean): { initialRouteName: undefined; screens: Record<string, Screen>; };