UNPKG

@redshank/native-router

Version:

@redshank/native-router is a file-based router for React Native CLI

14 lines 840 B
/** Match `[page]` -> `page` */ export declare function matchDynamicName(name: string): string | undefined; /** Match `[...page]` -> `page` */ export declare function matchDeepDynamicRouteName(name: string): string | undefined; /** Match `(page)` -> `page` */ export declare function matchGroupName(name: string): string | undefined; export declare function getNameFromFilePath(name: string): string; export declare function getContextKey(name: string): string; /** Remove `.js`, `.ts`, `.jsx`, `.tsx` */ export declare function removeSupportedExtensions(name: string): string; export declare function removeFileSystemDots(filePath: string): string; export declare function stripGroupSegmentsFromPath(path: string): string; export declare function stripInvisibleSegmentsFromPath(path: string): string; //# sourceMappingURL=matchers.d.ts.map