Home
last modified time | relevance | path

Searched refs:route (Results 1 – 25 of 185) sorted by relevance

12345678

/expo/packages/expo-router/src/__tests__/
H A DloadStaticParamsAsync.test.node.ts49 route: '',
67 route: 'blue',
73 route: '',
118 route: '',
207 route: '',
251 route: '',
272 route: '',
315 route: '',
368 route: '',
421 route: '',
[all …]
H A DgetRoutes.test.node.ts35 route: '[...404]', constant
44 route: '_sitemap', constant
57 ...route,
72 ...route,
200 route: '[...404]',
205 route: 'home',
214 route: '[...404]',
290 route: '',
319 route: '',
346 route: '',
[all …]
H A DgetReactNavigationConfig.test.node.ts9 route: 'people', constant
14 route: '(second-group)', constant
27 route: '[...deep]', constant
38 route: '[dynamic]', constant
44 route: 'index', constant
49 route: '(group)', constant
60 route: 'other/nested/[...screen]', constant
66 route: '_sitemap', constant
/expo/packages/expo-router/build/
H A DloadStaticParamsAsync.js8 async function loadStaticParamsAsync(route) { argument
9 …const processed = (await Promise.all(route.children.map((route) => loadStaticParamsRecursive(route
10 route.children = processed;
11 return route;
34 route.dynamic.forEach((dynamic) => {
64 if (!route?.dynamic && !route?.children?.length) {
65 return [route];
79 route.children = uniqBy((await recurseAndFlattenNodes([...route.children], {
101 const parsedRoute = createParsedRouteName(route.route, params);
104 ...route,
[all …]
H A DgetServerManifest.js6 function isApiRoute(route) { argument
7 return !route.children.length && !!route.contextKey.match(/\+api\.[jt]sx?$/);
9 function isNotFoundRoute(route) { argument
10 if (route.route === '404') {
13 return route.dynamic?.length && route.dynamic[0].name === '404';
17 function getFlatNodes(route) { argument
22 return [[key, route]];
27 const apiRoutes = flat.filter(([, route]) => isApiRoute(route));
28 const otherRoutes = flat.filter(([, route]) => !isApiRoute(route));
29 const standardRoutes = otherRoutes.filter(([, route]) => !isNotFoundRoute(route));
[all …]
H A DuseScreens.js18 .map((route) => ({ route, props: {} })); field
44 route: match,
51 …es.sort((0, Route_1.sortRoutesWithInitial)(initialRouteName)).map((route) => ({ route, props: {} }… field
112 segment: value.route })));
124 segment: value.route }));
129 route, navigation, field
141 function createGetIdForRoute(route) { argument
142 if (!route.dynamic?.length) {
174 …getId: createGetIdForRoute(route), ...props, name: route.route, key: route.route, options: (args) …
176 const staticOptions = route.generated ? route.loadRoute()?.getNavOptions : null;
[all …]
H A DgetRoutes.js142 route: name, property
151 route: clone,
157 route: name, property
238 if (route.route === '' && route.contextKey.match(/^\.\/_layout\.([jt]sx?)$/)) {
278 if (!route) {
284 return route;
289 if (!route) {
295 return route;
330 routes.children.some((route) => route.route === '_sitemap')) {
380 if ((0, matchers_1.matchGroupName)(route.route)) {
[all …]
H A DsortRoutes.js28 const aIndex = a.route === 'index' || (0, matchers_1.matchGroupName)(a.route) != null;
29 const bIndex = b.route === 'index' || (0, matchers_1.matchGroupName)(b.route) != null;
36 return a.route.length - b.route.length;
42 if (a.route === initialRouteName) {
45 if (b.route === initialRouteName) {
/expo/packages/expo-router/src/
H A DloadStaticParamsAsync.ts15 route.children.map((route) => loadStaticParamsRecursive(route, { parentParams: {} }))
19 route.children = processed;
20 return route;
91 route: RouteNode,
94 if (!route?.dynamic && !route?.children?.length) {
95 return [route];
116 route.children = uniqBy(
130 (i) => i.route
150 const parsedRoute = createParsedRouteName(route.route, params);
154 ...route,
[all …]
H A DgetServerManifest.ts25 function isApiRoute(route: RouteNode) {
26 return !route.children.length && !!route.contextKey.match(/\+api\.[jt]sx?$/);
30 if (route.route === '404') {
33 return route.dynamic?.length && route.dynamic[0].name === '404';
39 if (route.children.length) {
44 return [[key, route]];
47 const flat = getFlatNodes(route)
51 const apiRoutes = flat.filter(([, route]) => isApiRoute(route));
52 const otherRoutes = flat.filter(([, route]) => !isApiRoute(route));
53 const standardRoutes = otherRoutes.filter(([, route]) => !isNotFoundRoute(route));
[all …]
H A DgetRoutes.ts192 route: name, constant
211 route: name,
220 route: string,
313 if (route.route === '' && route.contextKey.match(/^\.\/_layout\.([jt]sx?)$/)) {
363 if (!route) {
372 return route;
380 if (!route) {
389 return route;
430 routes.children.some((route) => route.route === '_sitemap')
482 if (matchGroupName(route.route)) {
[all …]
H A DsortRoutes.ts28 const aIndex = a.route === 'index' || matchGroupName(a.route) != null;
29 const bIndex = b.route === 'index' || matchGroupName(b.route) != null;
38 return a.route.length - b.route.length;
44 if (a.route === initialRouteName) {
47 if (b.route === initialRouteName) {
H A DuseScreens.tsx57 .map((route) => ({ route, props: {} }));
71 children.map(({ route }) => route)
88 route: match,
94 route: RouteNode;
200 segment: value.route,
211 route,
232 export function createGetIdForRoute(route: Pick<RouteNode, 'dynamic' | 'route'>) {
265 name={route.route}
266 key={route.route}
269 const staticOptions = route.generated ? route.loadRoute()?.getNavOptions : null;
[all …]
/expo/docs/ui/components/Sidebar/
H A DSidebarSection.tsx4 export const SidebarSection = ({ route, ...rest }: SidebarNodeProps) => {
6 if (route.hidden || !route.children?.length) {
11 <SidebarCollapsible key={`section-${route.name}`} info={route}>
13 {route.children.map(child =>
15 <SidebarLink key={`${route.name}-${child.name}`} info={child}>
21 key={`group-${child.name}-${route.name}`}
22 route={child}
23 parentRoute={route}
/expo/packages/@expo/cli/src/start/server/type-generation/
H A Droutes.ts57 staticRoutes.delete(route);
58 dynamicRoutes.delete(route);
183 if (staticRoutes.has(route) || dynamicRoutes.has(route)) {
202 route
214 set.add(route);
218 if (!route.match(ARRAY_GROUP_REGEX)) {
219 addRoute(route, route);
223 if (route.includes('/(')) {
225 addRoute(route, routeWithoutGroups);
271 route: string,
[all …]
/expo/docs/ui/components/Navigation/
H A DNavigation.tsx26 {routes.map(route => navigationRenderer(route, activeRoutes))}
39 route: NavigationNode,
42 if (route.hidden) return null;
44 const routeKey = `${route.type}-${route.name}`;
45 const isActive = activeRoutes[route.type] === route;
46 const hasChildren = route.type !== 'page' && route.children.length;
48 <Component key={routeKey} route={route} isActive={isActive}>
72 for (const route of routes) {
74 if (route.hidden) continue;
76 switch (route.type) {
[all …]
/expo/apps/native-component-list/src/screens/Image/
H A DImageScreen.tsx9 route: 'image/comparison',
17 route: 'image/flashlist',
25 route: 'image/formats',
32 route: 'image/resizable',
39 route: 'image/content-fit',
46 route: 'image/events',
53 route: 'image/priority',
74 route: 'image/srcset',
88 route: 'image/tinting',
109 route: 'image/gifs',
[all …]
/expo/apps/native-component-list/src/screens/GL/
H A DGLScreen.tsx10 route: '/components/gl/cleartoblue',
16 route: '/components/gl/basictexture',
22 route: '/components/gl/glviewscreen',
29 route: '/components/gl/mask',
36 route: '/components/gl/snapshots',
55 route: '/components/gl/threesprite',
73 route: '/components/gl/pixibasic',
79 route: '/components/gl/pixisprite',
85 route: '/components/gl/glcamera',
97 route: '/components/gl/canvas',
[all …]
/expo/packages/@expo/server/src/
H A Dindex.ts52 getHtml = async (request, route) => {
61 getApiRoute = async (route) => {
79 route: RouteInfo<RegExp>
137 for (const route of routesManifest.htmlRoutes) { constant
143 updateRequestWithConfig(request, route);
170 for (const route of routesManifest.apiRoutes) { constant
171 if (!route.namedRegex.test(sanitizedPathname)) {
175 const func = await getApiRoute(route);
213 if (!route.namedRegex.test(sanitizedPathname)) {
218 updateRequestWithConfig(request, route);
[all …]
/expo/packages/expo-router/build/views/
H A DSitemap.js62 react_1.default.createElement(FileItem, { route: child })))))); property
64 function FileItem({ route, level = 0, parents = [], isInitial = false, }) { field
65 const disabled = route.children.length > 0;
66 …ents = react_1.default.useMemo(() => [...parents, ...route.route.split('/')], [parents, route.rout…
80 }, [segments, route.route]);
82 const segments = route.contextKey.split('/');
84 if (route.contextKey.match(/_layout\.[jt]sx?$/)) {
87 const segmentCount = route.route.split('/').length;
91 }, [route]);
94 …!route.internal && (react_1.default.createElement(Link_1.Link, { accessibilityLabel: route.context…
[all …]
/expo/packages/expo-router/build/fork/
H A DgetPathFromState.js39 if (route.state) {
42 if (route && isInvalidParams(route.params)) {
45 return route;
167 if (!route.state && isInvalidParams(route.params)) {
168 route.state = createFakeState(route.params);
202 if (!route.state && isInvalidParams(route.params)) {
203 route.state = createFakeState(route.params);
228 const index = route.state.index ?? route.state.routes.length - 1;
261 nextRoute: route,
276 if (!route.state && isInvalidParams(route.params)) {
[all …]
/expo/packages/expo-router/src/fork/
H A DgetPathFromState.ts32 const route =
37 if (route.state) {
41 if (route && isInvalidParams(route.params)) {
45 return route;
216 if (!route.state && isInvalidParams(route.params)) {
217 route.state = createFakeState(route.params);
256 if (!route.state && isInvalidParams(route.params)) {
257 route.state = createFakeState(route.params);
352 if (!route.state && isInvalidParams(route.params)) {
353 route.state = createFakeState(route.params);
[all …]
/expo/packages/@expo/server/build/
H A Dindex.js53 }, getApiRoute = async (route) => { argument
55 debug(`Handling API route: ${route.page}: ${filePath}`);
106 for (const route of routesManifest.htmlRoutes) {
111 updateRequestWithConfig(request, route);
135 for (const route of routesManifest.apiRoutes) {
136 if (!route.namedRegex.test(sanitizedPathname)) {
139 const func = await getApiRoute(route);
171 for (const route of routesManifest.notFoundRoutes) {
172 if (!route.namedRegex.test(sanitizedPathname)) {
176 updateRequestWithConfig(request, route);
[all …]
/expo/packages/expo-router/src/views/
H A DSitemap.tsx82 <FileItem route={child} />
90 route,
95 route: RouteNode;
103 () => [...parents, ...route.route.split('/')],
104 [parents, route.route]
122 }, [segments, route.route]);
131 const segmentCount = route.route.split('/').length;
136 }, [route]);
142 {!route.internal && (
188 route={child}
[all …]
/expo/home/api/
H A DAPIV2Client.ts16 private async sendApiV2Request<TData>(route: string, options: SendOptions): Promise<TData> {
17 const url = new URL(`${Config.api.origin}/--/api/v2/${route}`);
76 route: string,
100 return await this.sendApiV2Request(route, newOptions);
104 route: string,
123 return await this.sendApiV2Request(route, newOptions);
127 route: string,
130 return await this.sendApiV2Request(route, options);

12345678