UNPKG

expo-router

Version:

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

12 lines 434 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getSortedRoutes = void 0; const Route_1 = require("../Route"); function getSortedRoutes() { if (!this.routeNode) { throw new Error('No routes found'); } return this.routeNode.children.filter((route) => !route.internal).sort(Route_1.sortRoutes); } exports.getSortedRoutes = getSortedRoutes; //# sourceMappingURL=sort-routes.js.map