| /expo/packages/expo-router/src/utils/__tests__/ |
| H A D | url.test.node.ts | 9 ].forEach((href) => { 10 it(`should return false for "${href}"`, () => { 11 expect(hasUrlProtocolPrefix(href)).toBe(false); 22 ].forEach((href) => { 23 it(`should return true for "${href}"`, () => { 24 expect(hasUrlProtocolPrefix(href)).toBe(true);
|
| /expo/packages/@expo/metro-runtime/src/location/ |
| H A D | Location.native.ts | 19 constructor(href: string | null = null) { 22 href 56 href: { 58 return url.href; 148 return url.href; 158 href: this.href, constant 181 export function setLocationHref(href: string) { 182 location = new Location(href);
|
| /expo/packages/expo-router/src/layouts/ |
| H A D | Tabs.tsx | 12 import { Href } from '../link/href'; 18 BottomTabNavigationOptions & { href?: Href | null }, 23 // Support the `href` shortcut prop. 25 if (typeof screen.options !== 'function' && screen.options?.href !== undefined) { 26 const { href, ...options } = screen.options; 28 throw new Error('Cannot use `href` and `tabBarButton` together.'); 35 if (href == null) { 44 href={href}
|
| /expo/packages/expo-router/src/link/ |
| H A D | Link.tsx | 7 import { Href, resolveHref } from './href'; 14 href: Href; 26 /** Redirects to the href as soon as the component is mounted. */ 27 export function Redirect({ href }: { href: Href }) { 31 router.replace(href); 49 * @param props.href Absolute path to route (e.g. `/feeds/hot`). 60 href, 69 if (href == null) { 70 throw new Error('Link: href is required'); 72 return resolveHref(href); [all …]
|
| H A D | href.ts | 11 export const resolveHref = (href: Href): string => { 12 if (typeof href === 'string') { 13 return resolveHref({ pathname: href ?? '' }); 15 const path = href.pathname ?? ''; 16 if (!href?.params) { 20 ...href.params,
|
| /expo/packages/expo-router/src/ |
| H A D | imperative-api.ts | 5 push: (href) => store.push(href), 6 replace: (href) => store.replace(href),
|
| /expo/packages/expo-router/build/link/ |
| H A D | href.js | 5 const resolveHref = (href) => { argument 6 if (typeof href === 'string') { 7 return (0, exports.resolveHref)({ pathname: href ?? '' }); 9 const path = href.pathname ?? ''; 10 if (!href?.params) { 14 ...href.params,
|
| H A D | Link.js | 40 function Redirect({ href }) { field 44 router.replace(href); 64 function ExpoRouterLink({ href, replace, field 68 if (href == null) { 71 return (0, href_1.resolveHref)(href); 72 }, [href]); 73 const props = (0, useLinkToPathProps_1.default)({ href: resolvedHref, replace }); property
|
| H A D | Link.d.ts | 6 href: Href; property 14 export declare function Redirect({ href }: { 15 href: Href;
|
| /expo/packages/@expo/metro-runtime/build/location/ |
| H A D | Location.native.js | 22 constructor(href = null) { argument 25 href); 58 href: { property 60 return url.href; 151 return url.href; 161 href: this.href, property 181 function setLocationHref(href) { argument 182 location = new Location(href);
|
| /expo/packages/expo-router/src/global-state/ |
| H A D | routing.ts | 48 export function linkTo(this: RouterStore, href: string, event?: string) { 49 if (hasUrlProtocolPrefix(href)) { 50 Linking.openURL(href); 67 if (href === '..' || href === '../') { 74 if (href.startsWith('.')) { 84 href = resolve(base, href); 87 const state = this.linking.getStateFromPath!(href, this.linking.config); 90 console.error('Could not generate a valid navigation state for the given path: ' + href);
|
| /expo/docs/ui/components/Home/ |
| H A D | HomeButton.tsx | 3 export const HomeButton = ({ children, style, href, className, ...rest }: ButtonProps) => ( 6 href={href} 7 openInNewTab={href?.startsWith('http')}
|
| /expo/packages/expo-router/build/ |
| H A D | imperative-api.js | 6 push: (href) => router_store_1.store.push(href), 7 replace: (href) => router_store_1.store.replace(href),
|
| /expo/docs/ui/components/Authentication/ |
| H A D | CreateAppButton.tsx | 4 type CreateAppButtonProps = { href: string; name: string }; 6 export const CreateAppButton = ({ href, name }: CreateAppButtonProps) => ( 9 href={href}
|
| /expo/packages/html-elements/build/elements/ |
| H A D | Anchor.js | 4 export const A = forwardRef(({ href, target, download, rel, ...props }, ref) => { field 7 href, field 17 if (Platform.OS !== 'web' && href !== undefined) { 18 Linking.openURL(href);
|
| /expo/templates/expo-template-tabs/components/ |
| H A D | ExternalLink.tsx | 7 props: Omit<React.ComponentProps<typeof Link>, 'href'> & { href: string } 17 href={props.href} 23 WebBrowser.openBrowserAsync(props.href as string);
|
| /expo/packages/expo-router/build/layouts/ |
| H A D | Tabs.js | 17 if (typeof screen.options !== 'function' && screen.options?.href !== undefined) { 18 const { href, ...options } = screen.options; 27 if (href == null) { 31 …nt(Link_1.Link, { ...props, style: [{ display: 'flex' }, props.style], href: href, asChild: react_…
|
| /expo/apps/native-component-list/src/screens/SVG/examples/ |
| H A D | Reusable.tsx | 23 <Use href="#shape" x="20" y="0" /> 24 <Use href="#shape" x="170" y="0" /> 38 <Use href="#shape" x="75" y="50" fill="#0f0" /> 73 <Use href="#path" x="0" fill="blue" opacity="0.6" /> 74 <Use href="#path" x="20" y="5" fill="url(#linear)" /> 76 <Use href="#path" x="-10" y="20" fill="url(#radial)" /> 92 <Use href="#symbol" x="0" y="0" width="100" height="50" /> 93 <Use href="#symbol" x="10" y="50" width="75" height="38" /> 94 <Use href="#symbol" x="20" y="100" width="50" height="25" /> 110 <Use href="#path" fill="#3a8" /> [all …]
|
| /expo/docs/ui/components/Sidebar/ |
| H A D | SidebarFooter.tsx | 22 href="/archive" 29 href="https://snack.expo.dev" 36 href="https://chat.expo.dev" 43 href="https://forums.expo.dev" 50 href="https://expo.dev/changelog" 57 href="http://eepurl.com/hk1tCn"
|
| /expo/docs/pages/router/advanced/ |
| H A D | tabs.mdx | 11 …xpo Router adds `href` screen option which can only be used with screen options that are an object… 15 Sometimes you want a route to exist but not show up in the tab bar, you can pass `href: null` to di… 27 href: null, 37 …example, a profile tab). For this case, you'll want the button to always link to a specific `href`. 48 // Ensure the tab always links to the same href. 49 href: '/evanbacon', 51 href: { 70 href="/router/advanced/drawer/"
|
| /expo/packages/@expo/cli/e2e/__tests__/export/ |
| H A D | single-page-app.test.ts | 143 expect(link.attributes.href).toMatch(/^\/_expo\/static\/css\/.*\.css$/); 147 /<link rel="preload" href="\/_expo\/static\/css\/global-[\d\w]+\.css" as="style">/ 150 /<link rel="stylesheet" href="\/_expo\/static\/css\/global-[\d\w]+\.css">/ 154 /<link rel="preload" href="\/_expo\/static\/css\/test\.module-[\d\w]+\.css" as="style">/ 157 /<link rel="stylesheet" href="\/_expo\/static\/css\/test\.module-[\d\w]+\.css">/ 161 fs.readFileSync(path.join(outputDir, links[0].attributes.href), 'utf-8') 166 fs.readFileSync(path.join(outputDir, links[2].attributes.href), 'utf-8')
|
| /expo/packages/html-elements/src/elements/ |
| H A D | Anchor.tsx | 7 export const A = forwardRef(({ href, target, download, rel, ...props }: LinkProps, ref) => { 10 href, 20 if (Platform.OS !== 'web' && href !== undefined) { 21 Linking.openURL(href);
|
| /expo/packages/expo-router/build/global-state/ |
| H A D | routing.js | 66 function linkTo(href, event) { argument 67 if ((0, url_1.hasUrlProtocolPrefix)(href)) { 68 Linking.openURL(href); 79 if (href === '..' || href === '../') { 84 if (href.startsWith('.')) { 92 href = (0, path_1.resolve)(base, href); 94 const state = this.linking.getStateFromPath(href, this.linking.config); 96 console.error('Could not generate a valid navigation state for the given path: ' + href);
|
| /expo/docs/components/plugins/api/__snapshots__/ |
| H A D | APISectionUtils.test.tsx.snap | 228 href="#speechsynthesisevent" 267 href="#fontresource" 364 href="#pagedinfo" 372 href="#asset" 395 href="#pagedinfo" 403 href="#asset" 494 href="#sortbykey" 530 href="#resultseterror" 539 href="#resultset" 566 href="#assetref" [all …]
|
| /expo/packages/@expo/cli/src/export/ |
| H A D | html.ts | 4 links: { rel: string; href: string; as?: string }[] 12 if (link.href) linkTag += ` href="${link.href}"`;
|