UNPKG

expo-router

Version:

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

11 lines (10 loc) • 270 B
export type PatternPart = { segment: string; param?: string; regex?: string; optional?: boolean; }; /** * Parse a path into an array of parts with information about each segment. */ export declare function getPatternParts(path: string): PatternPart[];