first commit

This commit is contained in:
2026-03-10 16:18:05 +00:00
commit 11f9c069b5
31635 changed files with 3187747 additions and 0 deletions

35
node_modules/expo-router/build/Route.js generated vendored Normal file
View File

@@ -0,0 +1,35 @@
"use strict";
'use client';
Object.defineProperty(exports, "__esModule", { value: true });
exports.sortRoutes = exports.sortRoutesWithInitial = exports.LocalRouteParamsContext = void 0;
exports.useRouteNode = useRouteNode;
exports.useContextKey = useContextKey;
exports.Route = Route;
const react_1 = require("react");
const matchers_1 = require("./matchers");
const sortRoutes_1 = require("./sortRoutes");
Object.defineProperty(exports, "sortRoutesWithInitial", { enumerable: true, get: function () { return sortRoutes_1.sortRoutesWithInitial; } });
Object.defineProperty(exports, "sortRoutes", { enumerable: true, get: function () { return sortRoutes_1.sortRoutes; } });
const CurrentRouteContext = (0, react_1.createContext)(null);
exports.LocalRouteParamsContext = (0, react_1.createContext)({});
if (process.env.NODE_ENV !== 'production') {
CurrentRouteContext.displayName = 'RouteNode';
}
/** Return the RouteNode at the current contextual boundary. */
function useRouteNode() {
return (0, react_1.use)(CurrentRouteContext);
}
function useContextKey() {
const node = useRouteNode();
if (node == null) {
throw new Error('No filename found. This is likely a bug in expo-router.');
}
return (0, matchers_1.getContextKey)(node.contextKey);
}
/** Provides the matching routes and filename to the children. */
function Route({ children, node, params }) {
return (<exports.LocalRouteParamsContext.Provider value={params}>
<CurrentRouteContext.Provider value={node}>{children}</CurrentRouteContext.Provider>
</exports.LocalRouteParamsContext.Provider>);
}
//# sourceMappingURL=Route.js.map