expo-router
Version:
Expo Router is a file-based router for React Native and web applications.
11 lines • 400 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSortedRoutes = getSortedRoutes;
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);
}
//# sourceMappingURL=sort-routes.js.map
;