UNPKG

expo-router

Version:

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

7 lines (6 loc) • 236 B
/** * Drops routes absent from `routeNames` and returns `routes` unchanged when already ordered. */ export declare function orderRoutesByRouteNames<Route extends { name: string; }>(routes: Route[], routeNames: string[]): Route[];