expo-router 7.0.0-canary-20251206-615dec1 → 7.0.0-canary-20251211-7da85ea

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/android/build.gradle +2 -2
  2. package/build/ExpoRoot.d.ts.map +1 -1
  3. package/build/ExpoRoot.js +2 -1
  4. package/build/ExpoRoot.js.map +1 -1
  5. package/build/color/android.dynamic.types.d.ts +3 -3
  6. package/build/color/android.dynamic.types.js.map +1 -1
  7. package/build/color/android.material.types.d.ts +3 -3
  8. package/build/color/android.material.types.js.map +1 -1
  9. package/build/fork/getPathFromState.d.ts.map +1 -1
  10. package/build/fork/getPathFromState.js +2 -1
  11. package/build/fork/getPathFromState.js.map +1 -1
  12. package/build/fork/getStateFromPath-forks.d.ts.map +1 -1
  13. package/build/fork/getStateFromPath-forks.js +3 -7
  14. package/build/fork/getStateFromPath-forks.js.map +1 -1
  15. package/build/link/Link.d.ts +2 -0
  16. package/build/link/Link.d.ts.map +1 -1
  17. package/build/link/Link.js +2 -0
  18. package/build/link/Link.js.map +1 -1
  19. package/build/link/elements.d.ts +15 -4
  20. package/build/link/elements.d.ts.map +1 -1
  21. package/build/link/elements.js +7 -2
  22. package/build/link/elements.js.map +1 -1
  23. package/build/link/preview/native.d.ts +5 -1
  24. package/build/link/preview/native.d.ts.map +1 -1
  25. package/build/link/preview/native.js +12 -1
  26. package/build/link/preview/native.js.map +1 -1
  27. package/build/link/useLinkHooks.d.ts +1 -1
  28. package/build/link/zoom/link-apple-zoom-target.d.ts +3 -0
  29. package/build/link/zoom/link-apple-zoom-target.d.ts.map +1 -0
  30. package/build/link/zoom/link-apple-zoom-target.js +20 -0
  31. package/build/link/zoom/link-apple-zoom-target.js.map +1 -0
  32. package/build/link/zoom/useZoomTransitionPrimitives.ios.d.ts.map +1 -1
  33. package/build/link/zoom/useZoomTransitionPrimitives.ios.js +4 -1
  34. package/build/link/zoom/useZoomTransitionPrimitives.ios.js.map +1 -1
  35. package/build/link/zoom/zoom-transition-context.d.ts +7 -0
  36. package/build/link/zoom/zoom-transition-context.d.ts.map +1 -1
  37. package/build/link/zoom/zoom-transition-context.js +32 -1
  38. package/build/link/zoom/zoom-transition-context.js.map +1 -1
  39. package/build/loaders/utils.d.ts.map +1 -1
  40. package/build/loaders/utils.js +2 -1
  41. package/build/loaders/utils.js.map +1 -1
  42. package/build/native-tabs/NativeTabTrigger.d.ts +1 -1
  43. package/build/native-tabs/NativeTabTrigger.d.ts.map +1 -1
  44. package/build/native-tabs/NativeTabTrigger.js +5 -6
  45. package/build/native-tabs/NativeTabTrigger.js.map +1 -1
  46. package/build/native-tabs/NativeTabsView.web.js +1 -1
  47. package/build/native-tabs/NativeTabsView.web.js.map +1 -1
  48. package/build/onboard/Tutorial.d.ts.map +1 -1
  49. package/build/onboard/Tutorial.js +19 -8
  50. package/build/onboard/Tutorial.js.map +1 -1
  51. package/build/typed-routes/types.d.ts +4 -1
  52. package/build/typed-routes/types.d.ts.map +1 -1
  53. package/build/typed-routes/types.js.map +1 -1
  54. package/build/useScreens.d.ts.map +1 -1
  55. package/build/useScreens.js +6 -3
  56. package/build/useScreens.js.map +1 -1
  57. package/build/utils/url.d.ts +1 -0
  58. package/build/utils/url.d.ts.map +1 -1
  59. package/build/utils/url.js +9 -0
  60. package/build/utils/url.js.map +1 -1
  61. package/expo-module.config.json +1 -1
  62. package/ios/LinkPreview/LinkPreviewNativeActionView.swift +1 -1
  63. package/ios/LinkPreview/LinkPreviewNativeModule.swift +11 -0
  64. package/ios/LinkPreview/LinkZoomTransition.swift +126 -15
  65. package/ios/Toolbar/RouterToolbarHostView.swift +5 -1
  66. package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20251206-615dec1/expo.modules.router-7.0.0-canary-20251206-615dec1.module → 7.0.0-canary-20251211-7da85ea/expo.modules.router-7.0.0-canary-20251211-7da85ea.module} +7 -7
  67. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20251211-7da85ea/expo.modules.router-7.0.0-canary-20251211-7da85ea.module.md5 +1 -0
  68. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20251211-7da85ea/expo.modules.router-7.0.0-canary-20251211-7da85ea.module.sha1 +1 -0
  69. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20251211-7da85ea/expo.modules.router-7.0.0-canary-20251211-7da85ea.module.sha256 +1 -0
  70. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20251211-7da85ea/expo.modules.router-7.0.0-canary-20251211-7da85ea.module.sha512 +1 -0
  71. package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20251206-615dec1/expo.modules.router-7.0.0-canary-20251206-615dec1.pom → 7.0.0-canary-20251211-7da85ea/expo.modules.router-7.0.0-canary-20251211-7da85ea.pom} +1 -1
  72. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20251211-7da85ea/expo.modules.router-7.0.0-canary-20251211-7da85ea.pom.md5 +1 -0
  73. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20251211-7da85ea/expo.modules.router-7.0.0-canary-20251211-7da85ea.pom.sha1 +1 -0
  74. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20251211-7da85ea/expo.modules.router-7.0.0-canary-20251211-7da85ea.pom.sha256 +1 -0
  75. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20251211-7da85ea/expo.modules.router-7.0.0-canary-20251211-7da85ea.pom.sha512 +1 -0
  76. package/local-maven-repo/expo/modules/router/expo.modules.router/maven-metadata.xml +4 -4
  77. package/local-maven-repo/expo/modules/router/expo.modules.router/maven-metadata.xml.md5 +1 -1
  78. package/local-maven-repo/expo/modules/router/expo.modules.router/maven-metadata.xml.sha1 +1 -1
  79. package/local-maven-repo/expo/modules/router/expo.modules.router/maven-metadata.xml.sha256 +1 -1
  80. package/local-maven-repo/expo/modules/router/expo.modules.router/maven-metadata.xml.sha512 +1 -1
  81. package/package.json +12 -12
  82. package/build/onboard/createEntryFile.d.ts +0 -4
  83. package/build/onboard/createEntryFile.d.ts.map +0 -1
  84. package/build/onboard/createEntryFile.js +0 -63
  85. package/build/onboard/createEntryFile.js.map +0 -1
  86. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20251206-615dec1/expo.modules.router-7.0.0-canary-20251206-615dec1.module.md5 +0 -1
  87. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20251206-615dec1/expo.modules.router-7.0.0-canary-20251206-615dec1.module.sha1 +0 -1
  88. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20251206-615dec1/expo.modules.router-7.0.0-canary-20251206-615dec1.module.sha256 +0 -1
  89. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20251206-615dec1/expo.modules.router-7.0.0-canary-20251206-615dec1.module.sha512 +0 -1
  90. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20251206-615dec1/expo.modules.router-7.0.0-canary-20251206-615dec1.pom.md5 +0 -1
  91. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20251206-615dec1/expo.modules.router-7.0.0-canary-20251206-615dec1.pom.sha1 +0 -1
  92. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20251206-615dec1/expo.modules.router-7.0.0-canary-20251206-615dec1.pom.sha256 +0 -1
  93. package/local-maven-repo/expo/modules/router/expo.modules.router/7.0.0-canary-20251206-615dec1/expo.modules.router-7.0.0-canary-20251206-615dec1.pom.sha512 +0 -1
  94. /package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20251206-615dec1/expo.modules.router-7.0.0-canary-20251206-615dec1-sources.jar → 7.0.0-canary-20251211-7da85ea/expo.modules.router-7.0.0-canary-20251211-7da85ea-sources.jar} +0 -0
  95. /package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20251206-615dec1/expo.modules.router-7.0.0-canary-20251206-615dec1-sources.jar.md5 → 7.0.0-canary-20251211-7da85ea/expo.modules.router-7.0.0-canary-20251211-7da85ea-sources.jar.md5} +0 -0
  96. /package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20251206-615dec1/expo.modules.router-7.0.0-canary-20251206-615dec1-sources.jar.sha1 → 7.0.0-canary-20251211-7da85ea/expo.modules.router-7.0.0-canary-20251211-7da85ea-sources.jar.sha1} +0 -0
  97. /package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20251206-615dec1/expo.modules.router-7.0.0-canary-20251206-615dec1-sources.jar.sha256 → 7.0.0-canary-20251211-7da85ea/expo.modules.router-7.0.0-canary-20251211-7da85ea-sources.jar.sha256} +0 -0
  98. /package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20251206-615dec1/expo.modules.router-7.0.0-canary-20251206-615dec1-sources.jar.sha512 → 7.0.0-canary-20251211-7da85ea/expo.modules.router-7.0.0-canary-20251211-7da85ea-sources.jar.sha512} +0 -0
  99. /package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20251206-615dec1/expo.modules.router-7.0.0-canary-20251206-615dec1.aar → 7.0.0-canary-20251211-7da85ea/expo.modules.router-7.0.0-canary-20251211-7da85ea.aar} +0 -0
  100. /package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20251206-615dec1/expo.modules.router-7.0.0-canary-20251206-615dec1.aar.md5 → 7.0.0-canary-20251211-7da85ea/expo.modules.router-7.0.0-canary-20251211-7da85ea.aar.md5} +0 -0
  101. /package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20251206-615dec1/expo.modules.router-7.0.0-canary-20251206-615dec1.aar.sha1 → 7.0.0-canary-20251211-7da85ea/expo.modules.router-7.0.0-canary-20251211-7da85ea.aar.sha1} +0 -0
  102. /package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20251206-615dec1/expo.modules.router-7.0.0-canary-20251206-615dec1.aar.sha256 → 7.0.0-canary-20251211-7da85ea/expo.modules.router-7.0.0-canary-20251211-7da85ea.aar.sha256} +0 -0
  103. /package/local-maven-repo/expo/modules/router/expo.modules.router/{7.0.0-canary-20251206-615dec1/expo.modules.router-7.0.0-canary-20251206-615dec1.aar.sha512 → 7.0.0-canary-20251211-7da85ea/expo.modules.router-7.0.0-canary-20251211-7da85ea.aar.sha512} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"useScreens.js","sourceRoot":"","sources":["../src/useScreens.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyJb,4CAwBC;AAmDD,gEAgGC;AAED,oDAwBC;AAED,sCAcC;AAED,sCAaC;AA3XD,qDAOkC;AAElC,+CAAyC;AAEzC,mCAA6F;AAC7F,8DAAiE;AACjE,gEAAoD;AACpD,6EAA0E;AAC1E,yDAI4B;AAC5B,6CAAsC;AAEtC,mDAAgD;AAChD,+DAA4D;AAC5D,qCAAkC;AAmClC,SAAS,iBAAiB,CACxB,QAAqB,EACrB,QAAuB,EAAE,EACzB,gBAAyB;IAEzB,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;QACnB,OAAO,QAAQ;aACZ,IAAI,CAAC,IAAA,6BAAqB,EAAC,gBAAgB,CAAC,CAAC;aAC7C,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;IAC5C,CAAC;IACD,MAAM,OAAO,GAAG,CAAC,GAAG,QAAQ,CAAC,CAAC;IAE9B,MAAM,OAAO,GAAG,KAAK;SAClB,GAAG,CACF,CAAC,EACC,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,SAAS,EACT,OAAO,EACP,KAAK,EACL,mBAAmB,EAAE,QAAQ,GAC9B,EAAE,EAAE;QACH,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;YACpB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AK,CAAC,CACb,OAAO,CAAC,CAAC,oBAAoB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAC9C,YAAY,CAAC,CAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC,KAAK,CAAC,CAAC,EACtD,CACH,CAAC;AACJ,CAAC;AAED,SAAgB,aAAa,CAAC,IAAY,EAAE,UAA+B,EAAE;IAC3E,OAAO,IAAI;SACR,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;QACf,IAAI,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;YAC/B,OAAO,OAAO,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,OAAO,CAAC;QACtE,CAAC;aAAM,IAAI,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC5D,OAAO,OAAO,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC;QAC3D,CAAC;aAAM,CAAC;YACN,OAAO,OAAO,CAAC;QACjB,CAAC;IACH,CAAC,CAAC;SACD,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC","sourcesContent":["'use client';\n\nimport {\n useStateForPath,\n type EventMapBase,\n type NavigationState,\n type ParamListBase,\n type RouteProp,\n type ScreenListeners,\n} from '@react-navigation/native';\nimport type { NativeStackNavigationEventMap } from '@react-navigation/native-stack';\nimport React, { useEffect } from 'react';\n\nimport { LoadedRoute, Route, RouteNode, sortRoutesWithInitial, useRouteNode } from './Route';\nimport { useExpoRouterStore } from './global-state/storeContext';\nimport EXPO_ROUTER_IMPORT_MODE from './import-mode';\nimport { ZoomTransitionEnabler } from './link/zoom/ZoomTransitionEnabler';\nimport {\n hasParam,\n INTERNAL_EXPO_ROUTER_NO_ANIMATION_PARAM_NAME,\n removeParams,\n} from './navigationParams';\nimport { Screen } from './primitives';\nimport { UnknownOutputParams } from './types';\nimport { EmptyRoute } from './views/EmptyRoute';\nimport { SuspenseFallback } from './views/SuspenseFallback';\nimport { Try } from './views/Try';\n\nexport type ScreenProps<\n TOptions extends Record<string, any> = Record<string, any>,\n TState extends NavigationState = NavigationState,\n TEventMap extends EventMapBase = EventMapBase,\n> = {\n /** Name is required when used inside a Layout component. */\n name?: string;\n /**\n * Redirect to the nearest sibling route.\n * If all children are `redirect={true}`, the layout will render `null` as there are no children to render.\n */\n redirect?: boolean;\n initialParams?: Record<string, any>;\n options?:\n | TOptions\n | ((prop: { route: RouteProp<ParamListBase, string>; navigation: any }) => TOptions);\n\n listeners?:\n | ScreenListeners<TState, TEventMap>\n | ((prop: {\n route: RouteProp<ParamListBase, string>;\n navigation: any;\n }) => ScreenListeners<TState, TEventMap>);\n\n getId?: ({ params }: { params?: Record<string, any> }) => string | undefined;\n\n dangerouslySingular?: SingularOptions;\n};\n\nexport type SingularOptions =\n | boolean\n | ((name: string, params: UnknownOutputParams) => string | undefined);\n\nfunction getSortedChildren(\n children: RouteNode[],\n order: ScreenProps[] = [],\n initialRouteName?: string\n): { route: RouteNode; props: Partial<ScreenProps> }[] {\n if (!order?.length) {\n return children\n .sort(sortRoutesWithInitial(initialRouteName))\n .map((route) => ({ route, props: {} }));\n }\n const entries = [...children];\n\n const ordered = order\n .map(\n ({\n name,\n redirect,\n initialParams,\n listeners,\n options,\n getId,\n dangerouslySingular: singular,\n }) => {\n if (!entries.length) {\n console.warn(\n `[Layout children]: Too many screens defined. Route \"${name}\" is extraneous.`\n );\n return null;\n }\n const matchIndex = entries.findIndex((child) => child.route === name);\n if (matchIndex === -1) {\n console.warn(\n `[Layout children]: No route named \"${name}\" exists in nested children:`,\n children.map(({ route }) => route)\n );\n return null;\n } else {\n // Get match and remove from entries\n const match = entries[matchIndex];\n entries.splice(matchIndex, 1);\n\n // Ensure to return null after removing from entries.\n if (redirect) {\n if (typeof redirect === 'string') {\n throw new Error(`Redirecting to a specific route is not supported yet.`);\n }\n return null;\n }\n\n if (getId) {\n console.warn(\n `Deprecated: prop 'getId' on screen ${name} is deprecated. Please rename the prop to 'dangerouslySingular'`\n );\n if (singular) {\n console.warn(\n `Screen ${name} cannot use both getId and dangerouslySingular together.`\n );\n }\n } else if (singular) {\n // If singular is set, use it as the getId function.\n if (typeof singular === 'string') {\n getId = () => singular;\n } else if (typeof singular === 'function' && name) {\n getId = (options) => singular(name, options.params || {});\n } else if (singular === true && name) {\n getId = (options) => getSingularId(name, options);\n }\n }\n\n return {\n route: match,\n props: { initialParams, listeners, options, getId },\n };\n }\n }\n )\n .filter(Boolean) as {\n route: RouteNode;\n props: Partial<ScreenProps>;\n }[];\n\n // Add any remaining children\n ordered.push(\n ...entries.sort(sortRoutesWithInitial(initialRouteName)).map((route) => ({ route, props: {} }))\n );\n\n return ordered;\n}\n\n/**\n * @returns React Navigation screens sorted by the `route` property.\n */\nexport function useSortedScreens(\n order: ScreenProps[],\n protectedScreens: Set<string>,\n useOnlyUserDefinedScreens: boolean = false\n): React.ReactNode[] {\n const node = useRouteNode();\n\n const nodeChildren = node?.children ?? [];\n const children = useOnlyUserDefinedScreens\n ? nodeChildren.filter((child) =>\n order.some((userDefinedScreen) => userDefinedScreen.name === child.route)\n )\n : nodeChildren;\n\n const sorted = children.length ? getSortedChildren(children, order, node?.initialRouteName) : [];\n return React.useMemo(\n () =>\n sorted\n .filter((item) => !protectedScreens.has(item.route.route))\n .map((value) => {\n return routeToScreen(value.route, value.props);\n }),\n [sorted, protectedScreens]\n );\n}\n\nfunction fromImport(value: RouteNode, { ErrorBoundary, ...component }: LoadedRoute) {\n // If possible, add a more helpful display name for the component stack to improve debugging of React errors such as `Text strings must be rendered within a <Text> component.`.\n if (component?.default && __DEV__) {\n component.default.displayName ??= `${component.default.name ?? 'Route'}(${value.contextKey})`;\n }\n\n if (ErrorBoundary) {\n const Wrapped = React.forwardRef((props: any, ref: any) => {\n const children = React.createElement(component.default || EmptyRoute, {\n ...props,\n ref,\n });\n return <Try catch={ErrorBoundary}>{children}</Try>;\n });\n\n if (__DEV__) {\n Wrapped.displayName = `ErrorBoundary(${value.contextKey})`;\n }\n\n return {\n default: Wrapped,\n };\n }\n if (process.env.NODE_ENV !== 'production') {\n if (\n typeof component.default === 'object' &&\n component.default &&\n Object.keys(component.default).length === 0\n ) {\n return { default: EmptyRoute };\n }\n }\n\n return { default: component.default };\n}\n\nfunction fromLoadedRoute(value: RouteNode, res: LoadedRoute) {\n if (!(res instanceof Promise)) {\n return fromImport(value, res);\n }\n\n return res.then(fromImport.bind(null, value));\n}\n\n// TODO: Maybe there's a more React-y way to do this?\n// Without this store, the process enters a recursive loop.\nconst qualifiedStore = new WeakMap<RouteNode, React.ComponentType<any>>();\n\n/** Wrap the component with various enhancements and add access to child routes. */\nexport function getQualifiedRouteComponent(value: RouteNode) {\n if (qualifiedStore.has(value)) {\n return qualifiedStore.get(value)!;\n }\n\n let ScreenComponent:\n | React.ForwardRefExoticComponent<React.RefAttributes<unknown>>\n | React.ComponentType<any>;\n\n // TODO: This ensures sync doesn't use React.lazy, but it's not ideal.\n if (EXPO_ROUTER_IMPORT_MODE === 'lazy') {\n ScreenComponent = React.lazy(async () => {\n const res = value.loadRoute();\n return fromLoadedRoute(value, res) as Promise<{\n default: React.ComponentType<any>;\n }>;\n });\n\n if (__DEV__) {\n ScreenComponent.displayName = `AsyncRoute(${value.route})`;\n }\n } else {\n const res = value.loadRoute();\n ScreenComponent = fromImport(value, res).default!;\n }\n function BaseRoute({\n // Remove these React Navigation props to\n // enforce usage of expo-router hooks (where the query params are correct).\n route,\n navigation,\n\n // Pass all other props to the component\n ...props\n }: any) {\n const stateForPath = useStateForPath();\n const isFocused = navigation.isFocused();\n const store = useExpoRouterStore();\n\n if (isFocused) {\n const state = navigation.getState();\n const isLeaf = !('state' in state.routes[state.index]);\n if (isLeaf && stateForPath) store.setFocusedState(stateForPath);\n }\n\n useEffect(\n () =>\n navigation.addListener('focus', () => {\n const state = navigation.getState();\n const isLeaf = !('state' in state.routes[state.index]);\n // Because setFocusedState caches the route info, this call will only trigger rerenders\n // if the component itself didn’t rerender and the route info changed.\n // Otherwise, the update from the `if` above will handle it,\n // and this won’t cause a redundant second update.\n if (isLeaf && stateForPath) store.setFocusedState(stateForPath);\n }),\n [navigation]\n );\n\n useEffect(() => {\n return navigation.addListener(\n 'transitionEnd',\n (e?: NativeStackNavigationEventMap['transitionEnd']) => {\n if (!e?.data?.closing) {\n // When navigating to a screen, remove the no animation param to re-enable animations\n // Otherwise the navigation back would also have no animation\n if (hasParam(route?.params, INTERNAL_EXPO_ROUTER_NO_ANIMATION_PARAM_NAME)) {\n navigation.replaceParams(\n removeParams(route?.params, [INTERNAL_EXPO_ROUTER_NO_ANIMATION_PARAM_NAME])\n );\n }\n }\n }\n );\n }, [navigation]);\n\n return (\n <Route node={value} route={route}>\n <ZoomTransitionEnabler route={route} />\n <React.Suspense fallback={<SuspenseFallback route={value} />}>\n <ScreenComponent\n {...props}\n // Expose the template segment path, e.g. `(home)`, `[foo]`, `index`\n // the intention is to make it possible to deduce shared routes.\n segment={value.route}\n />\n </React.Suspense>\n </Route>\n );\n }\n\n if (__DEV__) {\n BaseRoute.displayName = `Route(${value.route})`;\n }\n\n qualifiedStore.set(value, BaseRoute);\n return BaseRoute;\n}\n\nexport function screenOptionsFactory(\n route: RouteNode,\n options?: ScreenProps['options']\n): ScreenProps['options'] {\n return (args) => {\n // Only eager load generated components\n const staticOptions = route.generated ? route.loadRoute()?.getNavOptions : null;\n const staticResult = typeof staticOptions === 'function' ? staticOptions(args) : staticOptions;\n const dynamicResult = typeof options === 'function' ? options?.(args) : options;\n const output = {\n ...staticResult,\n ...dynamicResult,\n };\n\n // Prevent generated screens from showing up in the tab bar.\n if (route.internal) {\n output.tabBarItemStyle = { display: 'none' };\n output.tabBarButton = () => null;\n // TODO: React Navigation doesn't provide a way to prevent rendering the drawer item.\n output.drawerItemStyle = { height: 0, display: 'none' };\n }\n\n return output;\n };\n}\n\nexport function routeToScreen(\n route: RouteNode,\n { options, getId, ...props }: Partial<ScreenProps> = {}\n) {\n return (\n <Screen\n {...props}\n name={route.route}\n key={route.route}\n getId={getId}\n options={screenOptionsFactory(route, options)}\n getComponent={() => getQualifiedRouteComponent(route)}\n />\n );\n}\n\nexport function getSingularId(name: string, options: Record<string, any> = {}) {\n return name\n .split('/')\n .map((segment) => {\n if (segment.startsWith('[...')) {\n return options.params?.[segment.slice(4, -1)]?.join('/') || segment;\n } else if (segment.startsWith('[') && segment.endsWith(']')) {\n return options.params?.[segment.slice(1, -1)] || segment;\n } else {\n return segment;\n }\n })\n .join('/');\n}\n"]}
1
+ {"version":3,"file":"useScreens.js","sourceRoot":"","sources":["../src/useScreens.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0Jb,4CAwBC;AAmDD,gEAkGC;AAED,oDAwBC;AAED,sCAcC;AAED,sCAaC;AA9XD,qDAOkC;AAElC,+CAAyC;AAEzC,mCAA6F;AAC7F,8DAAiE;AACjE,gEAAoD;AACpD,6EAA0E;AAC1E,iFAA0F;AAC1F,yDAI4B;AAC5B,6CAAsC;AAEtC,mDAAgD;AAChD,+DAA4D;AAC5D,qCAAkC;AAmClC,SAAS,iBAAiB,CACxB,QAAqB,EACrB,QAAuB,EAAE,EACzB,gBAAyB;IAEzB,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;QACnB,OAAO,QAAQ;aACZ,IAAI,CAAC,IAAA,6BAAqB,EAAC,gBAAgB,CAAC,CAAC;aAC7C,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;IAC5C,CAAC;IACD,MAAM,OAAO,GAA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sourcesContent":["'use client';\n\nimport {\n useStateForPath,\n type EventMapBase,\n type NavigationState,\n type ParamListBase,\n type RouteProp,\n type ScreenListeners,\n} from '@react-navigation/native';\nimport type { NativeStackNavigationEventMap } from '@react-navigation/native-stack';\nimport React, { useEffect } from 'react';\n\nimport { LoadedRoute, Route, RouteNode, sortRoutesWithInitial, useRouteNode } from './Route';\nimport { useExpoRouterStore } from './global-state/storeContext';\nimport EXPO_ROUTER_IMPORT_MODE from './import-mode';\nimport { ZoomTransitionEnabler } from './link/zoom/ZoomTransitionEnabler';\nimport { ZoomTransitionTargetContextProvider } from './link/zoom/zoom-transition-context';\nimport {\n hasParam,\n INTERNAL_EXPO_ROUTER_NO_ANIMATION_PARAM_NAME,\n removeParams,\n} from './navigationParams';\nimport { Screen } from './primitives';\nimport { UnknownOutputParams } from './types';\nimport { EmptyRoute } from './views/EmptyRoute';\nimport { SuspenseFallback } from './views/SuspenseFallback';\nimport { Try } from './views/Try';\n\nexport type ScreenProps<\n TOptions extends Record<string, any> = Record<string, any>,\n TState extends NavigationState = NavigationState,\n TEventMap extends EventMapBase = EventMapBase,\n> = {\n /** Name is required when used inside a Layout component. */\n name?: string;\n /**\n * Redirect to the nearest sibling route.\n * If all children are `redirect={true}`, the layout will render `null` as there are no children to render.\n */\n redirect?: boolean;\n initialParams?: Record<string, any>;\n options?:\n | TOptions\n | ((prop: { route: RouteProp<ParamListBase, string>; navigation: any }) => TOptions);\n\n listeners?:\n | ScreenListeners<TState, TEventMap>\n | ((prop: {\n route: RouteProp<ParamListBase, string>;\n navigation: any;\n }) => ScreenListeners<TState, TEventMap>);\n\n getId?: ({ params }: { params?: Record<string, any> }) => string | undefined;\n\n dangerouslySingular?: SingularOptions;\n};\n\nexport type SingularOptions =\n | boolean\n | ((name: string, params: UnknownOutputParams) => string | undefined);\n\nfunction getSortedChildren(\n children: RouteNode[],\n order: ScreenProps[] = [],\n initialRouteName?: string\n): { route: RouteNode; props: Partial<ScreenProps> }[] {\n if (!order?.length) {\n return children\n .sort(sortRoutesWithInitial(initialRouteName))\n .map((route) => ({ route, props: {} }));\n }\n const entries = [...children];\n\n const ordered = order\n .map(\n ({\n name,\n redirect,\n initialParams,\n listeners,\n options,\n getId,\n dangerouslySingular: singular,\n }) => {\n if (!entries.length) {\n console.warn(\n `[Layout children]: Too many screens defined. Route \"${name}\" is extraneous.`\n );\n return null;\n }\n const matchIndex = entries.findIndex((child) => child.route === name);\n if (matchIndex === -1) {\n console.warn(\n `[Layout children]: No route named \"${name}\" exists in nested children:`,\n children.map(({ route }) => route)\n );\n return null;\n } else {\n // Get match and remove from entries\n const match = entries[matchIndex];\n entries.splice(matchIndex, 1);\n\n // Ensure to return null after removing from entries.\n if (redirect) {\n if (typeof redirect === 'string') {\n throw new Error(`Redirecting to a specific route is not supported yet.`);\n }\n return null;\n }\n\n if (getId) {\n console.warn(\n `Deprecated: prop 'getId' on screen ${name} is deprecated. Please rename the prop to 'dangerouslySingular'`\n );\n if (singular) {\n console.warn(\n `Screen ${name} cannot use both getId and dangerouslySingular together.`\n );\n }\n } else if (singular) {\n // If singular is set, use it as the getId function.\n if (typeof singular === 'string') {\n getId = () => singular;\n } else if (typeof singular === 'function' && name) {\n getId = (options) => singular(name, options.params || {});\n } else if (singular === true && name) {\n getId = (options) => getSingularId(name, options);\n }\n }\n\n return {\n route: match,\n props: { initialParams, listeners, options, getId },\n };\n }\n }\n )\n .filter(Boolean) as {\n route: RouteNode;\n props: Partial<ScreenProps>;\n }[];\n\n // Add any remaining children\n ordered.push(\n ...entries.sort(sortRoutesWithInitial(initialRouteName)).map((route) => ({ route, props: {} }))\n );\n\n return ordered;\n}\n\n/**\n * @returns React Navigation screens sorted by the `route` property.\n */\nexport function useSortedScreens(\n order: ScreenProps[],\n protectedScreens: Set<string>,\n useOnlyUserDefinedScreens: boolean = false\n): React.ReactNode[] {\n const node = useRouteNode();\n\n const nodeChildren = node?.children ?? [];\n const children = useOnlyUserDefinedScreens\n ? nodeChildren.filter((child) =>\n order.some((userDefinedScreen) => userDefinedScreen.name === child.route)\n )\n : nodeChildren;\n\n const sorted = children.length ? getSortedChildren(children, order, node?.initialRouteName) : [];\n return React.useMemo(\n () =>\n sorted\n .filter((item) => !protectedScreens.has(item.route.route))\n .map((value) => {\n return routeToScreen(value.route, value.props);\n }),\n [sorted, protectedScreens]\n );\n}\n\nfunction fromImport(value: RouteNode, { ErrorBoundary, ...component }: LoadedRoute) {\n // If possible, add a more helpful display name for the component stack to improve debugging of React errors such as `Text strings must be rendered within a <Text> component.`.\n if (component?.default && __DEV__) {\n component.default.displayName ??= `${component.default.name ?? 'Route'}(${value.contextKey})`;\n }\n\n if (ErrorBoundary) {\n const Wrapped = React.forwardRef((props: any, ref: any) => {\n const children = React.createElement(component.default || EmptyRoute, {\n ...props,\n ref,\n });\n return <Try catch={ErrorBoundary}>{children}</Try>;\n });\n\n if (__DEV__) {\n Wrapped.displayName = `ErrorBoundary(${value.contextKey})`;\n }\n\n return {\n default: Wrapped,\n };\n }\n if (process.env.NODE_ENV !== 'production') {\n if (\n typeof component.default === 'object' &&\n component.default &&\n Object.keys(component.default).length === 0\n ) {\n return { default: EmptyRoute };\n }\n }\n\n return { default: component.default };\n}\n\nfunction fromLoadedRoute(value: RouteNode, res: LoadedRoute) {\n if (!(res instanceof Promise)) {\n return fromImport(value, res);\n }\n\n return res.then(fromImport.bind(null, value));\n}\n\n// TODO: Maybe there's a more React-y way to do this?\n// Without this store, the process enters a recursive loop.\nconst qualifiedStore = new WeakMap<RouteNode, React.ComponentType<any>>();\n\n/** Wrap the component with various enhancements and add access to child routes. */\nexport function getQualifiedRouteComponent(value: RouteNode) {\n if (qualifiedStore.has(value)) {\n return qualifiedStore.get(value)!;\n }\n\n let ScreenComponent:\n | React.ForwardRefExoticComponent<React.RefAttributes<unknown>>\n | React.ComponentType<any>;\n\n // TODO: This ensures sync doesn't use React.lazy, but it's not ideal.\n if (EXPO_ROUTER_IMPORT_MODE === 'lazy') {\n ScreenComponent = React.lazy(async () => {\n const res = value.loadRoute();\n return fromLoadedRoute(value, res) as Promise<{\n default: React.ComponentType<any>;\n }>;\n });\n\n if (__DEV__) {\n ScreenComponent.displayName = `AsyncRoute(${value.route})`;\n }\n } else {\n const res = value.loadRoute();\n ScreenComponent = fromImport(value, res).default!;\n }\n function BaseRoute({\n // Remove these React Navigation props to\n // enforce usage of expo-router hooks (where the query params are correct).\n route,\n navigation,\n\n // Pass all other props to the component\n ...props\n }: any) {\n const stateForPath = useStateForPath();\n const isFocused = navigation.isFocused();\n const store = useExpoRouterStore();\n\n if (isFocused) {\n const state = navigation.getState();\n const isLeaf = !('state' in state.routes[state.index]);\n if (isLeaf && stateForPath) store.setFocusedState(stateForPath);\n }\n\n useEffect(\n () =>\n navigation.addListener('focus', () => {\n const state = navigation.getState();\n const isLeaf = !('state' in state.routes[state.index]);\n // Because setFocusedState caches the route info, this call will only trigger rerenders\n // if the component itself didn’t rerender and the route info changed.\n // Otherwise, the update from the `if` above will handle it,\n // and this won’t cause a redundant second update.\n if (isLeaf && stateForPath) store.setFocusedState(stateForPath);\n }),\n [navigation]\n );\n\n useEffect(() => {\n return navigation.addListener(\n 'transitionEnd',\n (e?: NativeStackNavigationEventMap['transitionEnd']) => {\n if (!e?.data?.closing) {\n // When navigating to a screen, remove the no animation param to re-enable animations\n // Otherwise the navigation back would also have no animation\n if (hasParam(route?.params, INTERNAL_EXPO_ROUTER_NO_ANIMATION_PARAM_NAME)) {\n navigation.replaceParams(\n removeParams(route?.params, [INTERNAL_EXPO_ROUTER_NO_ANIMATION_PARAM_NAME])\n );\n }\n }\n }\n );\n }, [navigation]);\n\n return (\n <Route node={value} route={route}>\n <ZoomTransitionEnabler route={route} />\n <ZoomTransitionTargetContextProvider route={route}>\n <React.Suspense fallback={<SuspenseFallback route={value} />}>\n <ScreenComponent\n {...props}\n // Expose the template segment path, e.g. `(home)`, `[foo]`, `index`\n // the intention is to make it possible to deduce shared routes.\n segment={value.route}\n />\n </React.Suspense>\n </ZoomTransitionTargetContextProvider>\n </Route>\n );\n }\n\n if (__DEV__) {\n BaseRoute.displayName = `Route(${value.route})`;\n }\n\n qualifiedStore.set(value, BaseRoute);\n return BaseRoute;\n}\n\nexport function screenOptionsFactory(\n route: RouteNode,\n options?: ScreenProps['options']\n): ScreenProps['options'] {\n return (args) => {\n // Only eager load generated components\n const staticOptions = route.generated ? route.loadRoute()?.getNavOptions : null;\n const staticResult = typeof staticOptions === 'function' ? staticOptions(args) : staticOptions;\n const dynamicResult = typeof options === 'function' ? options?.(args) : options;\n const output = {\n ...staticResult,\n ...dynamicResult,\n };\n\n // Prevent generated screens from showing up in the tab bar.\n if (route.internal) {\n output.tabBarItemStyle = { display: 'none' };\n output.tabBarButton = () => null;\n // TODO: React Navigation doesn't provide a way to prevent rendering the drawer item.\n output.drawerItemStyle = { height: 0, display: 'none' };\n }\n\n return output;\n };\n}\n\nexport function routeToScreen(\n route: RouteNode,\n { options, getId, ...props }: Partial<ScreenProps> = {}\n) {\n return (\n <Screen\n {...props}\n name={route.route}\n key={route.route}\n getId={getId}\n options={screenOptionsFactory(route, options)}\n getComponent={() => getQualifiedRouteComponent(route)}\n />\n );\n}\n\nexport function getSingularId(name: string, options: Record<string, any> = {}) {\n return name\n .split('/')\n .map((segment) => {\n if (segment.startsWith('[...')) {\n return options.params?.[segment.slice(4, -1)]?.join('/') || segment;\n } else if (segment.startsWith('[') && segment.endsWith(']')) {\n return options.params?.[segment.slice(1, -1)] || segment;\n } else {\n return segment;\n }\n })\n .join('/');\n}\n"]}
@@ -5,4 +5,5 @@
5
5
  export declare function hasUrlProtocolPrefix(href: string): boolean;
6
6
  export declare function isWellKnownUri(href: string): boolean;
7
7
  export declare function shouldLinkExternally(href: string): boolean;
8
+ export declare function parseUrlUsingCustomBase(href: string): URL;
8
9
  //# sourceMappingURL=url.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../src/utils/url.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAKpD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAG1D"}
1
+ {"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../src/utils/url.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAKpD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAG1D;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAOzD"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.hasUrlProtocolPrefix = hasUrlProtocolPrefix;
4
4
  exports.isWellKnownUri = isWellKnownUri;
5
5
  exports.shouldLinkExternally = shouldLinkExternally;
6
+ exports.parseUrlUsingCustomBase = parseUrlUsingCustomBase;
6
7
  /**
7
8
  * Does the input string start with a valid URL scheme.
8
9
  * NOTE: Additional strictness added to ensure URLs sent in query parameters for in-app navigation are not matched.
@@ -20,4 +21,12 @@ function shouldLinkExternally(href) {
20
21
  // Cheap check first to avoid regex if the href is not a path fragment.
21
22
  return !href.startsWith('.') && (hasUrlProtocolPrefix(href) || isWellKnownUri(href));
22
23
  }
24
+ function parseUrlUsingCustomBase(href) {
25
+ // NOTE(@kitten): This used to use a dummy base URL for parsing (phony [.] example)
26
+ // However, this seems to get flagged since it's preserved 1:1 in the output bytecode by certain scanners
27
+ // Instead, we use an empty `file:` URL. This will still perform `pathname` normalization, search parameter parsing
28
+ // encoding, and all other logic, except the logic that applies to hostnames and protocols, and also not leave a
29
+ // dummy URL in the output bytecode
30
+ return new URL(href, 'file:');
31
+ }
23
32
  //# sourceMappingURL=url.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"url.js","sourceRoot":"","sources":["../../src/utils/url.ts"],"names":[],"mappings":";;AAIA,oDAEC;AAED,wCAKC;AAED,oDAGC;AAlBD;;;GAGG;AACH,SAAgB,oBAAoB,CAAC,IAAY;IAC/C,OAAO,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC3C,CAAC;AAED,SAAgB,cAAc,CAAC,IAAY;IACzC,mHAAmH;IACnH,8HAA8H;IAC9H,mGAAmG;IACnG,OAAO,yEAAyE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC9F,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAY;IAC/C,uEAAuE;IACvE,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC;AACvF,CAAC","sourcesContent":["/**\n * Does the input string start with a valid URL scheme.\n * NOTE: Additional strictness added to ensure URLs sent in query parameters for in-app navigation are not matched.\n */\nexport function hasUrlProtocolPrefix(href: string): boolean {\n return /^([\\w\\d_+.-]+:)?\\/\\//.test(href);\n}\n\nexport function isWellKnownUri(href: string): boolean {\n // This is a hack and we should change this to work like the web in the future where we have full confidence in the\n // ability to match URLs and send anything unmatched to the OS. The main difference between this and `hasUrlProtocolPrefix` is\n // that we don't require `//`, e.g. `mailto:` is valid and common, and `mailto://bacon` is invalid.\n return /^(https?|mailto|tel|sms|geo|maps|market|itmss?|itms-apps|content|file):/.test(href);\n}\n\nexport function shouldLinkExternally(href: string): boolean {\n // Cheap check first to avoid regex if the href is not a path fragment.\n return !href.startsWith('.') && (hasUrlProtocolPrefix(href) || isWellKnownUri(href));\n}\n"]}
1
+ {"version":3,"file":"url.js","sourceRoot":"","sources":["../../src/utils/url.ts"],"names":[],"mappings":";;AAIA,oDAEC;AAED,wCAKC;AAED,oDAGC;AAED,0DAOC;AA3BD;;;GAGG;AACH,SAAgB,oBAAoB,CAAC,IAAY;IAC/C,OAAO,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC3C,CAAC;AAED,SAAgB,cAAc,CAAC,IAAY;IACzC,mHAAmH;IACnH,8HAA8H;IAC9H,mGAAmG;IACnG,OAAO,yEAAyE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC9F,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAY;IAC/C,uEAAuE;IACvE,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC;AACvF,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAY;IAClD,mFAAmF;IACnF,yGAAyG;IACzG,mHAAmH;IACnH,gHAAgH;IAChH,mCAAmC;IACnC,OAAO,IAAI,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAChC,CAAC","sourcesContent":["/**\n * Does the input string start with a valid URL scheme.\n * NOTE: Additional strictness added to ensure URLs sent in query parameters for in-app navigation are not matched.\n */\nexport function hasUrlProtocolPrefix(href: string): boolean {\n return /^([\\w\\d_+.-]+:)?\\/\\//.test(href);\n}\n\nexport function isWellKnownUri(href: string): boolean {\n // This is a hack and we should change this to work like the web in the future where we have full confidence in the\n // ability to match URLs and send anything unmatched to the OS. The main difference between this and `hasUrlProtocolPrefix` is\n // that we don't require `//`, e.g. `mailto:` is valid and common, and `mailto://bacon` is invalid.\n return /^(https?|mailto|tel|sms|geo|maps|market|itmss?|itms-apps|content|file):/.test(href);\n}\n\nexport function shouldLinkExternally(href: string): boolean {\n // Cheap check first to avoid regex if the href is not a path fragment.\n return !href.startsWith('.') && (hasUrlProtocolPrefix(href) || isWellKnownUri(href));\n}\n\nexport function parseUrlUsingCustomBase(href: string): URL {\n // NOTE(@kitten): This used to use a dummy base URL for parsing (phony [.] example)\n // However, this seems to get flagged since it's preserved 1:1 in the output bytecode by certain scanners\n // Instead, we use an empty `file:` URL. This will still perform `pathname` normalization, search parameter parsing\n // encoding, and all other logic, except the logic that applies to hostnames and protocols, and also not leave a\n // dummy URL in the output bytecode\n return new URL(href, 'file:');\n}\n"]}
@@ -9,7 +9,7 @@
9
9
  "publication": {
10
10
  "groupId": "expo.modules.router",
11
11
  "artifactId": "expo.modules.router",
12
- "version": "7.0.0-canary-20251206-615dec1",
12
+ "version": "7.0.0-canary-20251211-7da85ea",
13
13
  "repository": "local-maven-repo"
14
14
  }
15
15
  }
@@ -149,7 +149,7 @@ class LinkPreviewNativeActionView: ExpoView, LinkPreviewMenuUpdatable {
149
149
  #if RCT_NEW_ARCH_ENABLED
150
150
  override func mountChildComponentView(_ childComponentView: UIView, index: Int) {
151
151
  if let childActionView = childComponentView as? LinkPreviewNativeActionView {
152
- subActions.append(childActionView)
152
+ subActions.insert(childActionView, at: index)
153
153
  childActionView.parentMenuUpdatable = self
154
154
  } else {
155
155
  print(
@@ -3,6 +3,7 @@ import ExpoModulesCore
3
3
  public class LinkPreviewNativeModule: Module {
4
4
  static let moduleName: String = "ExpoRouterNativeLinkPreview"
5
5
  lazy var zoomSourceRepository = LinkZoomTransitionsSourceRepository()
6
+ lazy var zoomAlignmentViewRepository = LinkZoomTransitionsAlignmentViewRepository()
6
7
 
7
8
  public func definition() -> ModuleDefinition {
8
9
  Name(LinkPreviewNativeModule.moduleName)
@@ -116,6 +117,16 @@ public class LinkPreviewNativeModule: Module {
116
117
  view.isPreventingInteractiveDismissal = prevent
117
118
  }
118
119
  }
120
+
121
+ View(LinkZoomTransitionAlignmentRectDetector.self) {
122
+ Prop("identifier") {
123
+ (view: LinkZoomTransitionAlignmentRectDetector, identifier: String) in
124
+ view.identifier = identifier
125
+ }
126
+ Prop("disableForceFlatten") { (_: LinkZoomTransitionAlignmentRectDetector, _: Bool) in
127
+ // This prop is used in ExpoShadowNode in order to disable force flattening, when display: contents is used
128
+ }
129
+ }
119
130
  }
120
131
  }
121
132
 
@@ -6,7 +6,7 @@ class LinkSourceInfo {
6
6
  let alignment: CGRect?
7
7
  weak var view: UIView?
8
8
 
9
- init(alignment: CGRect?, view: UIView) {
9
+ init(view: UIView, alignment: CGRect?) {
10
10
  self.alignment = alignment
11
11
  self.view = view
12
12
  }
@@ -68,13 +68,56 @@ class LinkZoomTransitionsSourceRepository {
68
68
  defer { lock.unlock() }
69
69
  if let source = sources[identifier], let view = source.view, !identifier.isEmpty {
70
70
  sources[identifier] = LinkSourceInfo(
71
+ view: view,
71
72
  alignment: alignment,
72
- view: view
73
73
  )
74
74
  }
75
75
  }
76
76
  }
77
77
 
78
+ class LinkZoomTransitionsAlignmentViewRepository {
79
+ private var alignmentViews: [String: WeakUIView] = [:]
80
+ private let lock = NSLock()
81
+
82
+ init() {}
83
+
84
+ func addIfNotExists(
85
+ identifier: String,
86
+ alignmentView: UIView
87
+ ) {
88
+ lock.lock()
89
+ defer { lock.unlock() }
90
+ if alignmentViews[identifier] == nil && !identifier.isEmpty {
91
+ alignmentViews[identifier] = WeakUIView(view: alignmentView)
92
+ }
93
+ }
94
+
95
+ func removeIfSame(
96
+ identifier: String,
97
+ alignmentView: UIView
98
+ ) {
99
+ lock.lock()
100
+ defer { lock.unlock() }
101
+ if let existing = alignmentViews[identifier], existing.view === alignmentView {
102
+ alignmentViews.removeValue(forKey: identifier)
103
+ }
104
+ }
105
+
106
+ func get(identifier: String) -> UIView? {
107
+ lock.lock()
108
+ defer { lock.unlock() }
109
+ return alignmentViews[identifier]?.view
110
+ }
111
+
112
+ private class WeakUIView {
113
+ weak var view: UIView?
114
+
115
+ init(view: UIView) {
116
+ self.view = view
117
+ }
118
+ }
119
+ }
120
+
78
121
  class LinkZoomTransitionSource: LinkZoomExpoView, LinkPreviewIndirectTriggerProtocol {
79
122
  var child: UIView?
80
123
 
@@ -84,9 +127,9 @@ class LinkZoomTransitionSource: LinkZoomExpoView, LinkPreviewIndirectTriggerProt
84
127
 
85
128
  var alignment: CGRect? {
86
129
  didSet {
87
- // Update alignment info in the repository
130
+ // Update alignment info in the sourceRepository
88
131
  if child != nil {
89
- repository?.updateAlignment(
132
+ sourceRepository?.updateAlignment(
90
133
  identifier: identifier,
91
134
  alignment: alignment
92
135
  )
@@ -99,18 +142,18 @@ class LinkZoomTransitionSource: LinkZoomExpoView, LinkPreviewIndirectTriggerProt
99
142
  guard identifier != oldValue else { return }
100
143
  if let child {
101
144
  if oldValue.isEmpty {
102
- repository?.registerSource(
145
+ sourceRepository?.registerSource(
103
146
  identifier: identifier,
104
- source: LinkSourceInfo(alignment: alignment, view: child)
147
+ source: LinkSourceInfo(view: child, alignment: alignment)
105
148
  )
106
149
  } else {
107
- repository?.updateIdentifier(
150
+ sourceRepository?.updateIdentifier(
108
151
  oldIdentifier: oldValue,
109
152
  newIdentifier: identifier
110
153
  )
111
154
  }
112
155
  } else {
113
- repository?.unregisterSource(
156
+ sourceRepository?.unregisterSource(
114
157
  identifier: oldValue
115
158
  )
116
159
  }
@@ -128,9 +171,9 @@ class LinkZoomTransitionSource: LinkZoomExpoView, LinkPreviewIndirectTriggerProt
128
171
  return
129
172
  }
130
173
  child = childComponentView
131
- repository?.registerSource(
174
+ sourceRepository?.registerSource(
132
175
  identifier: identifier,
133
- source: LinkSourceInfo(alignment: alignment, view: childComponentView)
176
+ source: LinkSourceInfo(view: childComponentView, alignment: alignment)
134
177
  )
135
178
  super.mountChildComponentView(childComponentView, index: index)
136
179
  }
@@ -138,7 +181,7 @@ class LinkZoomTransitionSource: LinkZoomExpoView, LinkPreviewIndirectTriggerProt
138
181
  override func unmountChildComponentView(_ child: UIView, index: Int) {
139
182
  if child == self.child {
140
183
  self.child = nil
141
- repository?.unregisterSource(
184
+ sourceRepository?.unregisterSource(
142
185
  identifier: identifier
143
186
  )
144
187
  }
@@ -146,6 +189,58 @@ class LinkZoomTransitionSource: LinkZoomExpoView, LinkPreviewIndirectTriggerProt
146
189
  }
147
190
  }
148
191
 
192
+ class LinkZoomTransitionAlignmentRectDetector: LinkZoomExpoView {
193
+ private var child: UIView?
194
+
195
+ var identifier: String = "" {
196
+ didSet {
197
+ if oldValue != identifier && !oldValue.isEmpty {
198
+ print(
199
+ "[expo-router] LinkZoomTransitionAlignmentRectDetector does not support changing the identifier after it has been set."
200
+ )
201
+ return
202
+ }
203
+ if let child = child {
204
+ alignmentViewRepository?.addIfNotExists(
205
+ identifier: identifier,
206
+ alignmentView: child
207
+ )
208
+ }
209
+ }
210
+ }
211
+
212
+ override func mountChildComponentView(
213
+ _ childComponentView: UIView,
214
+ index: Int
215
+ ) {
216
+ if child != nil {
217
+ print(
218
+ "[expo-router] LinkZoomTransitionAlignmentRectDetector can only have one child view."
219
+ )
220
+ return
221
+ }
222
+ if !identifier.isEmpty {
223
+ alignmentViewRepository?.addIfNotExists(
224
+ identifier: identifier,
225
+ alignmentView: childComponentView
226
+ )
227
+ }
228
+ self.child = childComponentView
229
+ super.mountChildComponentView(childComponentView, index: index)
230
+ }
231
+
232
+ override func unmountChildComponentView(_ child: UIView, index: Int) {
233
+ if child == self.child {
234
+ self.child = nil
235
+ alignmentViewRepository?.removeIfSame(
236
+ identifier: identifier,
237
+ alignmentView: child
238
+ )
239
+ }
240
+ super.unmountChildComponentView(child, index: index)
241
+ }
242
+ }
243
+
149
244
  class LinkZoomTransitionEnabler: LinkZoomExpoView {
150
245
  var zoomTransitionSourceIdentifier: String = ""
151
246
  var isPreventingInteractiveDismissal: Bool = false
@@ -169,16 +264,24 @@ class LinkZoomTransitionEnabler: LinkZoomExpoView {
169
264
  if #available(iOS 18.0, *) {
170
265
  let options = UIViewController.Transition.ZoomOptions()
171
266
 
172
- options.alignmentRectProvider = { _ in
173
- let sourceInfo = self.repository?.getSource(
267
+ options.alignmentRectProvider = { context in
268
+ let sourceInfo = self.sourceRepository?.getSource(
174
269
  identifier: self.zoomTransitionSourceIdentifier)
270
+ let alignmentView = self.alignmentViewRepository?.get(
271
+ identifier: self.zoomTransitionSourceIdentifier)
272
+ if let alignmentView = alignmentView {
273
+ return alignmentView.convert(
274
+ alignmentView.bounds,
275
+ to: context.zoomedViewController.view
276
+ )
277
+ }
175
278
  return sourceInfo?.alignment
176
279
  }
177
280
  options.interactiveDismissShouldBegin = { _ in
178
281
  !self.isPreventingInteractiveDismissal
179
282
  }
180
283
  controller.preferredTransition = .zoom(options: options) { _ in
181
- let sourceInfo = self.repository?.getSource(
284
+ let sourceInfo = self.sourceRepository?.getSource(
182
285
  identifier: self.zoomTransitionSourceIdentifier)
183
286
  var view: UIView? = sourceInfo?.view
184
287
  if let linkPreviewView = view as? NativeLinkPreviewView {
@@ -217,11 +320,19 @@ class LinkZoomExpoView: ExpoView {
217
320
  as? LinkPreviewNativeModule
218
321
  }
219
322
 
220
- var repository: LinkZoomTransitionsSourceRepository? {
323
+ var sourceRepository: LinkZoomTransitionsSourceRepository? {
221
324
  guard let module else {
222
325
  print("[expo-router] LinkPreviewNativeModule not loaded")
223
326
  return nil
224
327
  }
225
328
  return module.zoomSourceRepository
226
329
  }
330
+
331
+ var alignmentViewRepository: LinkZoomTransitionsAlignmentViewRepository? {
332
+ guard let module else {
333
+ print("[expo-router] LinkPreviewNativeModule not loaded")
334
+ return nil
335
+ }
336
+ return module.zoomAlignmentViewRepository
337
+ }
227
338
  }
@@ -57,12 +57,15 @@ class RouterToolbarHostView: ExpoView, LinkPreviewMenuUpdatable {
57
57
  return item.barButtonItem
58
58
  }
59
59
  if let menu = menuItemsMap[$0] {
60
- return UIBarButtonItem(
60
+ let item = UIBarButtonItem(
61
61
  title: menu.title,
62
62
  image: menu.icon.flatMap { UIImage(systemName: $0) },
63
63
  primaryAction: nil,
64
64
  menu: menu.uiAction as? UIMenu
65
65
  )
66
+ // Otherwise, the menu items will be reversed in the toolbar
67
+ item.preferredMenuElementOrder = .fixed
68
+ return item
66
69
  }
67
70
  print(
68
71
  "[expo-router] Warning: Could not find toolbar item or menu for identifier \($0)"
@@ -87,6 +90,7 @@ class RouterToolbarHostView: ExpoView, LinkPreviewMenuUpdatable {
87
90
  }
88
91
  addRouterToolbarItemAtIndex(toolbarItem, index: index)
89
92
  } else if let menu = childComponentView as? LinkPreviewNativeActionView {
93
+ menu.parentMenuUpdatable = self
90
94
  addMenuToolbarItemAtIndex(menu, index: index)
91
95
  } else {
92
96
  print(
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "expo.modules.router",
5
5
  "module": "expo.modules.router",
6
- "version": "7.0.0-canary-20251206-615dec1",
6
+ "version": "7.0.0-canary-20251211-7da85ea",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "files": [
26
26
  {
27
- "name": "expo.modules.router-7.0.0-canary-20251206-615dec1.aar",
28
- "url": "expo.modules.router-7.0.0-canary-20251206-615dec1.aar",
27
+ "name": "expo.modules.router-7.0.0-canary-20251211-7da85ea.aar",
28
+ "url": "expo.modules.router-7.0.0-canary-20251211-7da85ea.aar",
29
29
  "size": 13671,
30
30
  "sha512": "f51bd2a6d3fcc9075dbf99d66f77162d530586d0793d68e109a55f6edfbe4ff98bc9c9c5d587d0feec99807b6ae94a729232000e89f840278b21f4d423caa520",
31
31
  "sha256": "089d182f36875a201ad1b30b44d39812cd5155af987f3d33cd5eef8542103c82",
@@ -60,8 +60,8 @@
60
60
  ],
61
61
  "files": [
62
62
  {
63
- "name": "expo.modules.router-7.0.0-canary-20251206-615dec1.aar",
64
- "url": "expo.modules.router-7.0.0-canary-20251206-615dec1.aar",
63
+ "name": "expo.modules.router-7.0.0-canary-20251211-7da85ea.aar",
64
+ "url": "expo.modules.router-7.0.0-canary-20251211-7da85ea.aar",
65
65
  "size": 13671,
66
66
  "sha512": "f51bd2a6d3fcc9075dbf99d66f77162d530586d0793d68e109a55f6edfbe4ff98bc9c9c5d587d0feec99807b6ae94a729232000e89f840278b21f4d423caa520",
67
67
  "sha256": "089d182f36875a201ad1b30b44d39812cd5155af987f3d33cd5eef8542103c82",
@@ -80,8 +80,8 @@
80
80
  },
81
81
  "files": [
82
82
  {
83
- "name": "expo.modules.router-7.0.0-canary-20251206-615dec1-sources.jar",
84
- "url": "expo.modules.router-7.0.0-canary-20251206-615dec1-sources.jar",
83
+ "name": "expo.modules.router-7.0.0-canary-20251211-7da85ea-sources.jar",
84
+ "url": "expo.modules.router-7.0.0-canary-20251211-7da85ea-sources.jar",
85
85
  "size": 2318,
86
86
  "sha512": "9864add8e93e3c0a9a9c930aaed67016b15054c3fafd59a0bd3a5402d7cdc5827be84c22c2c137f3e5acb4e39270d9bfb9ca3fe11234458d4f2e0d4c78747f48",
87
87
  "sha256": "d5dff6259e86de721fc0f07fe740a5e18088e19b76738719b0a6f94caef06224",
@@ -0,0 +1 @@
1
+ 80ea9f1432ce674c57fef44f91d810a80c7f6b140e651cb1da7c1210a55e4063b07fff432035bdfc3bea042007fbedc900ef4686717d3f958342e30f35b708ec
@@ -9,7 +9,7 @@
9
9
  <modelVersion>4.0.0</modelVersion>
10
10
  <groupId>expo.modules.router</groupId>
11
11
  <artifactId>expo.modules.router</artifactId>
12
- <version>7.0.0-canary-20251206-615dec1</version>
12
+ <version>7.0.0-canary-20251211-7da85ea</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>expo.modules.router</name>
15
15
  <url>https://github.com/expo/expo</url>
@@ -0,0 +1 @@
1
+ 954efc9011c6dd13fdb6a3babac202c8ce854f4ba605388c378096e7e450ac06249946aa3f81da7d4d52eabaea7ab99e91f522937fdec3e5a2ebbbd16dc45a70
@@ -3,11 +3,11 @@
3
3
  <groupId>expo.modules.router</groupId>
4
4
  <artifactId>expo.modules.router</artifactId>
5
5
  <versioning>
6
- <latest>7.0.0-canary-20251206-615dec1</latest>
7
- <release>7.0.0-canary-20251206-615dec1</release>
6
+ <latest>7.0.0-canary-20251211-7da85ea</latest>
7
+ <release>7.0.0-canary-20251211-7da85ea</release>
8
8
  <versions>
9
- <version>7.0.0-canary-20251206-615dec1</version>
9
+ <version>7.0.0-canary-20251211-7da85ea</version>
10
10
  </versions>
11
- <lastUpdated>20251206225013</lastUpdated>
11
+ <lastUpdated>20251211212254</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 39b41c75576233caeef30c6772340a2f
1
+ 89246345f931072dd5a6cbb681ff9071
@@ -1 +1 @@
1
- 76e4f2999a9e1c5d31680963568124e8e4604255
1
+ 73846ff86844d0a19f8fad9d546a991a42368df6
@@ -1 +1 @@
1
- a44ec56f4b67cd562e50472b26ecc39e84818afc96302f369308241ef5ccb864
1
+ 3efd8b36d801893a38e3d0382c32457635c7b3be3f94ae09dbc9983a38e71b85
@@ -1 +1 @@
1
- db875d09df1ae2a14c2f31e6b3dea38fe924b1bcab9558c3854e248d4cb72e7f46dbbfd2b6f57b84f8500edbbec9e7e3f520f31a59c6fe9354137fdad9ef427f
1
+ 52cb932e164c2aab2129a168c12c9496fcce68e8f1154152902813dca0a6a22b9168d239c35ab7902b6238a7f8db62ec433772edc27edfca0b4da3c67cc2cd7d
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-router",
3
- "version": "7.0.0-canary-20251206-615dec1",
3
+ "version": "7.0.0-canary-20251211-7da85ea",
4
4
  "description": "Expo Router is a file-based router for React Native and web applications.",
5
5
  "author": "650 Industries, Inc.",
6
6
  "license": "MIT",
@@ -83,14 +83,14 @@
83
83
  "expo"
84
84
  ],
85
85
  "peerDependencies": {
86
- "@expo/metro-runtime": "6.2.0-canary-20251206-615dec1",
87
- "@expo/log-box": "0.0.13-canary-20251206-615dec1",
86
+ "@expo/metro-runtime": "6.2.0-canary-20251211-7da85ea",
87
+ "@expo/log-box": "0.0.13-canary-20251211-7da85ea",
88
88
  "@react-navigation/drawer": "^7.7.2",
89
89
  "@testing-library/react-native": ">= 12.0.0",
90
- "expo": "55.0.0-canary-20251206-615dec1",
91
- "expo-constants": "18.1.0-canary-20251206-615dec1",
92
- "expo-linking": "8.0.11-canary-20251206-615dec1",
93
- "expo-symbols": "1.1.0-canary-20251206-615dec1",
90
+ "expo": "55.0.0-canary-20251211-7da85ea",
91
+ "expo-constants": "18.1.0-canary-20251211-7da85ea",
92
+ "expo-linking": "8.0.11-canary-20251211-7da85ea",
93
+ "expo-symbols": "1.1.0-canary-20251211-7da85ea",
94
94
  "react": "*",
95
95
  "react-dom": "*",
96
96
  "react-native": "*",
@@ -99,7 +99,7 @@
99
99
  "react-native-safe-area-context": ">= 5.4.0",
100
100
  "react-native-screens": "*",
101
101
  "react-native-web": "*",
102
- "react-server-dom-webpack": "~19.0.1 || ~19.1.2 || ~19.2.1"
102
+ "react-server-dom-webpack": "~19.0.2 || ~19.1.3 || ~19.2.2"
103
103
  },
104
104
  "peerDependenciesMeta": {
105
105
  "@testing-library/react-native": {
@@ -132,11 +132,11 @@
132
132
  "@types/react-dom": "^19.1.7",
133
133
  "@types/semver": "^7.7.0",
134
134
  "immer": "^10.1.1",
135
- "react-server-dom-webpack": "~19.0.1"
135
+ "react-server-dom-webpack": "~19.0.2"
136
136
  },
137
137
  "dependencies": {
138
- "@expo/metro-runtime": "6.2.0-canary-20251206-615dec1",
139
- "@expo/schema-utils": "0.1.9-canary-20251206-615dec1",
138
+ "@expo/metro-runtime": "6.2.0-canary-20251211-7da85ea",
139
+ "@expo/schema-utils": "0.1.9-canary-20251211-7da85ea",
140
140
  "@radix-ui/react-slot": "1.2.0",
141
141
  "@radix-ui/react-tabs": "^1.1.12",
142
142
  "@react-navigation/bottom-tabs": "^7.7.3",
@@ -145,7 +145,7 @@
145
145
  "client-only": "^0.0.1",
146
146
  "debug": "^4.3.4",
147
147
  "escape-string-regexp": "^4.0.0",
148
- "expo-server": "1.0.6-canary-20251206-615dec1",
148
+ "expo-server": "1.0.6-canary-20251211-7da85ea",
149
149
  "fast-deep-equal": "^3.1.3",
150
150
  "invariant": "^2.2.4",
151
151
  "nanoid": "^3.3.8",
@@ -1,4 +0,0 @@
1
- /** Middleware for creating an entry file in the project. */
2
- export declare function createEntryFileAsync(): Promise<Response> | undefined;
3
- export declare function getAbsolutePath(): string;
4
- //# sourceMappingURL=createEntryFile.d.ts.map