Home
last modified time | relevance | path

Searched refs:usePathname (Results 1 – 22 of 22) sorted by relevance

/expo/packages/expo-router/build/
H A Dhooks.js6 exports.useLocalSearchParams = exports.useGlobalSearchParams = exports.usePathname = exports.useSeg…
65 function usePathname() { function
68 exports.usePathname = usePathname;
H A Dexports.d.ts2 export { useRouter, useUnstableGlobalHref, usePathname, useGlobalSearchParams, useLocalSearchParams…
H A Dhooks.d.ts33 export declare function usePathname(): string;
H A Dexports.js3 …exports.useLocalSearchParams = exports.useGlobalSearchParams = exports.usePathname = exports.useUn…
11 …ty(exports, "usePathname", { enumerable: true, get: function () { return hooks_1.usePathname; } });
H A Dexports.js.map1 …ews/Navigator';\n\nexport {\n useRouter,\n useUnstableGlobalHref,\n usePathname,\n useGlobalSe…
H A Dhooks.js.map1 …global selected pathname without query parameters. */\nexport function usePathname(): string {\n …
/expo/apps/router-e2e/__e2e__/static-rendering/app/
H A D+html.tsx3 import { usePathname } from 'expo-router';
8 const pathname = usePathname();
/expo/packages/expo-router/src/
H A Dexports.ts7 usePathname,
H A Dhooks.ts67 export function usePathname(): string { function
/expo/docs/pages/router/reference/
H A Dscreen-tracking.mdx17 import { usePathname, useGlobalSearchParams, Slot } from 'expo-router';
20 const pathname = usePathname();
H A Dhooks.mdx118 <APIBox header="usePathname">
127 import { usePathname } from 'expo-router';
132 const pathname = usePathname();
H A Dtesting.mdx90 Assert the current pathname against a given string. The matcher uses the value of the [`usePathname
/expo/packages/expo-router/src/views/
H A DUnmatched.tsx5 import { usePathname, useRouter } from '../hooks';
28 const pathname = usePathname();
/expo/packages/expo-router/src/__tests__/
H A Dhooks.test.node.tsx6 import { useGlobalSearchParams, useLocalSearchParams, usePathname, useSegments } from '../hooks';
100 url: usePathname(),
159 url: usePathname(),
249 describe(usePathname, () => {
251 const { result } = renderHook(() => usePathname(), ['[fruit]/[shape]/[...veg?]'], {
H A Dnavigation.test.tsx11 usePathname,
602 const pathname = usePathname();
617 const pathname = usePathname();
/expo/packages/expo-router/build/views/
H A DUnmatched.js28 const pathname = (0, hooks_1.usePathname)();
H A DUnmatched.js.map1usePathname, useRouter } from '../hooks';\nimport { Link } from '../link/Link';\nimport { useNavig…
/expo/docs/pages/router/migrate/
H A Dfrom-react-navigation.mdx283 … Expo Router can reliably represent any route with a string. Use the [`usePathname()`](/router/ref…
295 Use the [`usePathname()`](/router/reference/hooks/#usepathname) or [`useSegments()`](/router/refere…
313 Use the [`usePathname()`](/router/reference/hooks/#usepathname), [`useSegments()`](/router/referenc…
406 import { Navigator, usePathname, Slot, Link } from 'expo-router';
421 const pathname = usePathname();
445 If you're observing the navigation state directly, consider migrating to the `usePathname`, `useSeg…
/expo/packages/expo-router/src/head/
H A DExpoHead.ios.tsx6 import { useLocalSearchParams, useUnstableGlobalHref, usePathname, useSegments } from '../hooks';
206 const activityId = urlToId(usePathname() || '/');
/expo/packages/expo-router/build/head/
H A DExpoHead.ios.js166 const activityId = urlToId((0, hooks_1.usePathname)() || '/');
H A DExpoHead.ios.js.map1usePathname, useSegments } from '../hooks';\n\nfunction urlToId(url: string) {\n return url.repla…
/expo/packages/@expo/cli/e2e/__tests__/export/__snapshots__/
H A Dstatic-rendering.test.ts.snap3 exports[`exports static supports usePathname in +html files 1`] = `