react-native-screen-transitions 3.3.0 → 3.4.0-alpha.0
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.
- package/README.md +323 -130
- package/lib/commonjs/blank-stack/components/stack-view.js +13 -29
- package/lib/commonjs/blank-stack/components/stack-view.js.map +1 -1
- package/lib/commonjs/blank-stack/components/stack-view.native.js +13 -29
- package/lib/commonjs/blank-stack/components/stack-view.native.js.map +1 -1
- package/lib/commonjs/blank-stack/navigators/create-blank-stack-navigator.js +2 -20
- package/lib/commonjs/blank-stack/navigators/create-blank-stack-navigator.js.map +1 -1
- package/lib/commonjs/component-stack/components/component-screen.js +1 -1
- package/lib/commonjs/component-stack/components/component-screen.js.map +1 -1
- package/lib/commonjs/component-stack/components/stack-view.js +11 -25
- package/lib/commonjs/component-stack/components/stack-view.js.map +1 -1
- package/lib/commonjs/native-stack/navigators/createNativeStackNavigator.js +2 -20
- package/lib/commonjs/native-stack/navigators/createNativeStackNavigator.js.map +1 -1
- package/lib/commonjs/native-stack/views/NativeStackView.native.js +2 -4
- package/lib/commonjs/native-stack/views/NativeStackView.native.js.map +1 -1
- package/lib/commonjs/shared/animation/snap-to.js +1 -1
- package/lib/commonjs/shared/animation/snap-to.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +17 -0
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +45 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +101 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js +33 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +47 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +57 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +37 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +58 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +35 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/index.js +230 -0
- package/lib/commonjs/shared/components/create-boundary-component/index.js.map +1 -0
- package/lib/commonjs/shared/{utils/bounds/types/builder.js → components/create-boundary-component/types.js} +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/types.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js +21 -0
- package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -0
- package/lib/commonjs/shared/components/create-transition-aware-component.js +40 -8
- package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/commonjs/shared/components/native-screen.js +5 -5
- package/lib/commonjs/shared/components/native-screen.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/variations/float-overlay.js +9 -6
- package/lib/commonjs/shared/components/overlay/variations/float-overlay.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +2 -2
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js +2 -2
- package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js.map +1 -1
- package/lib/commonjs/shared/components/scene-view.js +34 -0
- package/lib/commonjs/shared/components/scene-view.js.map +1 -0
- package/lib/commonjs/shared/{hooks → components/screen-container/hooks}/use-backdrop-pointer-events.js +7 -5
- package/lib/commonjs/shared/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -0
- package/lib/commonjs/shared/components/screen-container/index.js +32 -0
- package/lib/commonjs/shared/components/screen-container/index.js.map +1 -0
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +101 -0
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -0
- package/lib/commonjs/shared/components/screen-container/layers/content.js +118 -0
- package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -0
- package/lib/commonjs/shared/components/screen-container/layers/surface-container.js +52 -0
- package/lib/commonjs/shared/components/screen-container/layers/surface-container.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js +42 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js +27 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js +47 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js.map +1 -0
- package/lib/commonjs/shared/{hooks/lifecycle/use-close-transition.js → components/screen-lifecycle/hooks/use-close-transition/index.js} +39 -18
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +1 -0
- package/lib/commonjs/shared/{hooks/animation → components/screen-lifecycle/hooks}/use-high-refresh-rate.js +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js.map +1 -0
- package/lib/commonjs/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-open-transition.js +12 -3
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +1 -0
- package/lib/commonjs/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-screen-events.js +2 -2
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-screen-events.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/index.js +36 -0
- package/lib/commonjs/shared/components/screen-lifecycle/index.js.map +1 -0
- package/lib/commonjs/shared/configs/index.js +3 -1
- package/lib/commonjs/shared/configs/index.js.map +1 -1
- package/lib/commonjs/shared/configs/presets.js +222 -203
- package/lib/commonjs/shared/configs/presets.js.map +1 -1
- package/lib/commonjs/shared/configs/specs.js +8 -1
- package/lib/commonjs/shared/configs/specs.js.map +1 -1
- package/lib/commonjs/shared/constants.js +19 -9
- package/lib/commonjs/shared/constants.js.map +1 -1
- package/lib/commonjs/shared/hooks/animation/use-associated-style.js +219 -28
- package/lib/commonjs/shared/hooks/animation/use-associated-style.js.map +1 -1
- package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js +1 -1
- package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js +1 -1
- package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js.map +1 -1
- package/lib/commonjs/shared/hooks/navigation/use-closing-route-keys.js.map +1 -1
- package/lib/commonjs/shared/hooks/navigation/use-navigation-helpers.js +30 -0
- package/lib/commonjs/shared/hooks/navigation/use-navigation-helpers.js.map +1 -0
- package/lib/commonjs/shared/hooks/navigation/use-previous.js.map +1 -1
- package/lib/commonjs/shared/hooks/navigation/use-screen-state.js +2 -2
- package/lib/commonjs/shared/hooks/navigation/use-screen-state.js.map +1 -1
- package/lib/commonjs/shared/hooks/navigation/use-stack.js +0 -19
- package/lib/commonjs/shared/hooks/navigation/use-stack.js.map +1 -1
- package/lib/commonjs/shared/hooks/navigation/use-tab-press-reset.js +32 -0
- package/lib/commonjs/shared/hooks/navigation/use-tab-press-reset.js.map +1 -0
- package/lib/commonjs/shared/hooks/reanimated/use-shared-value-ref.js +38 -0
- package/lib/commonjs/shared/hooks/reanimated/use-shared-value-ref.js.map +1 -0
- package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js +2 -13
- package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
- package/lib/commonjs/shared/index.js +12 -2
- package/lib/commonjs/shared/index.js.map +1 -1
- package/lib/commonjs/shared/providers/gestures/gestures.provider.js +94 -0
- package/lib/commonjs/shared/providers/gestures/gestures.provider.js.map +1 -0
- package/lib/commonjs/shared/{hooks/gestures/use-screen-gesture-handlers.js → providers/gestures/handlers/use-handlers.js} +77 -98
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +1 -0
- package/lib/commonjs/shared/{utils/gesture/check-gesture-activation.js → providers/gestures/helpers/gesture-activation.js} +2 -2
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.js.map +1 -0
- package/lib/commonjs/shared/{utils/gesture/should-defer-to-child-claim.js → providers/gestures/helpers/gesture-claims.js} +1 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-claims.js.map +1 -0
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-directions.js +56 -0
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-directions.js.map +1 -0
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-physics.js +143 -0
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-physics.js.map +1 -0
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-reset.js +76 -0
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-reset.js.map +1 -0
- package/lib/commonjs/shared/{utils/gesture/determine-snap-target.js → providers/gestures/helpers/gesture-targets.js} +50 -3
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-targets.js.map +1 -0
- package/lib/commonjs/shared/providers/gestures/helpers/register-direction-claims.js +74 -0
- package/lib/commonjs/shared/providers/gestures/helpers/register-direction-claims.js.map +1 -0
- package/lib/commonjs/shared/providers/gestures/index.js +19 -0
- package/lib/commonjs/shared/providers/gestures/index.js.map +1 -0
- package/lib/commonjs/shared/providers/gestures/types.js +13 -0
- package/lib/commonjs/shared/providers/gestures/types.js.map +1 -0
- package/lib/commonjs/shared/{hooks → providers}/gestures/use-build-gestures.js +25 -32
- package/lib/commonjs/shared/providers/gestures/use-build-gestures.js.map +1 -0
- package/lib/commonjs/shared/providers/layout-anchor.provider.js +19 -6
- package/lib/commonjs/shared/providers/layout-anchor.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/register-bounds.provider.js +124 -77
- package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +46 -0
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -0
- package/lib/commonjs/shared/{utils/animation → providers/screen/animation/helpers}/derivations.js +6 -2
- package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js.map +1 -0
- package/lib/commonjs/shared/{hooks/animation/use-screen-animation.js → providers/screen/animation/helpers/pipeline.js} +70 -45
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/worklet.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/index.js +26 -0
- package/lib/commonjs/shared/providers/screen/animation/index.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js +14 -0
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js +91 -0
- package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +41 -0
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js +31 -0
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js +28 -0
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/descriptors/index.js +25 -0
- package/lib/commonjs/shared/providers/screen/descriptors/index.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/screen-composer.js +12 -11
- package/lib/commonjs/shared/providers/screen/screen-composer.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles.provider.js +37 -25
- package/lib/commonjs/shared/providers/screen/styles.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/scroll-settle.provider.js +25 -0
- package/lib/commonjs/shared/providers/scroll-settle.provider.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/core.provider.js +14 -8
- package/lib/commonjs/shared/providers/stack/core.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/direct.provider.js +14 -67
- package/lib/commonjs/shared/providers/stack/direct.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-closing-route-map.js +30 -0
- package/lib/commonjs/shared/providers/stack/helpers/use-closing-route-map.js.map +1 -0
- package/lib/commonjs/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/align-routes-with-latest.js +1 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/align-routes-with-latest.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/are-descriptors-equal.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/have-same-route-keys.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/helpers/routes-are-identical.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/index.js +101 -0
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes/index.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/helpers/use-processed-routes.js +58 -0
- package/lib/commonjs/shared/providers/stack/helpers/use-processed-routes.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/helpers/use-stack-derived.js +37 -0
- package/lib/commonjs/shared/providers/stack/helpers/use-stack-derived.js.map +1 -0
- package/lib/commonjs/shared/providers/stack/managed.provider.js +36 -124
- package/lib/commonjs/shared/providers/stack/managed.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/viewport.provider.js +33 -0
- package/lib/commonjs/shared/providers/viewport.provider.js.map +1 -0
- package/lib/commonjs/shared/stores/animation.store.js +33 -20
- package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +43 -0
- package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/helpers/keys.js +23 -0
- package/lib/commonjs/shared/stores/bounds/helpers/keys.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/helpers/matching.js +22 -0
- package/lib/commonjs/shared/stores/bounds/helpers/matching.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/index.js +37 -0
- package/lib/commonjs/shared/stores/bounds/index.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/internals/clear.js +247 -0
- package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/internals/presence.js +128 -0
- package/lib/commonjs/shared/stores/bounds/internals/presence.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/internals/registry.js +309 -0
- package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +123 -0
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/internals/state.js +102 -0
- package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/types.js +6 -0
- package/lib/commonjs/shared/stores/bounds/types.js.map +1 -0
- package/lib/commonjs/shared/stores/gesture.store.js +36 -16
- package/lib/commonjs/shared/stores/gesture.store.js.map +1 -1
- package/lib/commonjs/shared/types/gesture.types.js +4 -0
- package/lib/commonjs/shared/types/gesture.types.js.map +1 -1
- package/lib/commonjs/shared/types/providers/direct-stack.types.js +6 -0
- package/lib/commonjs/shared/types/providers/direct-stack.types.js.map +1 -0
- package/lib/commonjs/shared/types/providers/managed-stack.types.js +6 -0
- package/lib/commonjs/shared/types/providers/managed-stack.types.js.map +1 -0
- package/lib/commonjs/shared/types/stack.types.js +4 -0
- package/lib/commonjs/shared/types/stack.types.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/animate-many.js +32 -0
- package/lib/commonjs/shared/utils/animation/animate-many.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/build-bounds-options.js +41 -0
- package/lib/commonjs/shared/utils/bounds/helpers/build-bounds-options.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js +137 -0
- package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/constants.js +15 -0
- package/lib/commonjs/shared/utils/bounds/helpers/constants.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/geometry.js +3 -2
- package/lib/commonjs/shared/utils/bounds/helpers/geometry.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/interpolate-style.js +2 -2
- package/lib/commonjs/shared/utils/bounds/helpers/interpolate-style.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/interpolate.js +20 -0
- package/lib/commonjs/shared/utils/bounds/helpers/interpolate.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js +67 -0
- package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js +40 -0
- package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/math.js +132 -0
- package/lib/commonjs/shared/utils/bounds/helpers/math.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/navigation-accessor.js +45 -0
- package/lib/commonjs/shared/utils/bounds/helpers/navigation-accessor.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js +25 -0
- package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js +154 -21
- package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/index.js +89 -190
- package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/helpers.js +60 -0
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/helpers.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/index.js +20 -0
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/index.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/types.js +6 -0
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/types.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/zoom.js +295 -0
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/zoom.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/types/options.js +6 -0
- package/lib/commonjs/shared/utils/bounds/types/{builder.js.map → options.js.map} +1 -1
- package/lib/commonjs/shared/utils/create-provider.js +1 -23
- package/lib/commonjs/shared/utils/create-provider.js.map +1 -1
- package/lib/commonjs/shared/utils/gesture/find-collapse-target.js +2 -1
- package/lib/commonjs/shared/utils/gesture/find-collapse-target.js.map +1 -1
- package/lib/commonjs/shared/utils/gesture/resolve-ownership.js +0 -28
- package/lib/commonjs/shared/utils/gesture/resolve-ownership.js.map +1 -1
- package/lib/commonjs/shared/utils/gesture/validate-snap-points.js +11 -1
- package/lib/commonjs/shared/utils/gesture/validate-snap-points.js.map +1 -1
- package/lib/commonjs/shared/utils/logger.js +1 -3
- package/lib/commonjs/shared/utils/logger.js.map +1 -1
- package/lib/commonjs/shared/utils/navigation/compose-descriptors.js.map +1 -1
- package/lib/commonjs/shared/utils/navigation/resolve-scene-neighbors.js +70 -0
- package/lib/commonjs/shared/utils/navigation/resolve-scene-neighbors.js.map +1 -0
- package/lib/commonjs/shared/utils/navigation/sync-routes-with-removed.js.map +1 -1
- package/lib/commonjs/shared/utils/normalize-interpolated-style.js +68 -0
- package/lib/commonjs/shared/utils/normalize-interpolated-style.js.map +1 -0
- package/lib/commonjs/shared/utils/overlay/visibility.js +1 -2
- package/lib/commonjs/shared/utils/overlay/visibility.js.map +1 -1
- package/lib/commonjs/shared/utils/platform.js +13 -0
- package/lib/commonjs/shared/utils/platform.js.map +1 -0
- package/lib/module/blank-stack/components/stack-view.js +10 -25
- package/lib/module/blank-stack/components/stack-view.js.map +1 -1
- package/lib/module/blank-stack/components/stack-view.native.js +10 -25
- package/lib/module/blank-stack/components/stack-view.native.js.map +1 -1
- package/lib/module/blank-stack/navigators/create-blank-stack-navigator.js +3 -20
- package/lib/module/blank-stack/navigators/create-blank-stack-navigator.js.map +1 -1
- package/lib/module/component-stack/components/component-screen.js +1 -1
- package/lib/module/component-stack/components/component-screen.js.map +1 -1
- package/lib/module/component-stack/components/stack-view.js +9 -22
- package/lib/module/component-stack/components/stack-view.js.map +1 -1
- package/lib/module/native-stack/navigators/createNativeStackNavigator.js +3 -20
- package/lib/module/native-stack/navigators/createNativeStackNavigator.js.map +1 -1
- package/lib/module/native-stack/views/NativeStackView.native.js +1 -3
- package/lib/module/native-stack/views/NativeStackView.native.js.map +1 -1
- package/lib/module/shared/animation/snap-to.js +1 -1
- package/lib/module/shared/animation/snap-to.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +12 -0
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +40 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +95 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +28 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +42 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +52 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +32 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +53 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +30 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/index.js +224 -0
- package/lib/module/shared/components/create-boundary-component/index.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/types.js +4 -0
- package/lib/module/shared/components/create-boundary-component/types.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js +17 -0
- package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -0
- package/lib/module/shared/components/create-transition-aware-component.js +42 -10
- package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/module/shared/components/native-screen.js +5 -5
- package/lib/module/shared/components/native-screen.js.map +1 -1
- package/lib/module/shared/components/overlay/variations/float-overlay.js +11 -7
- package/lib/module/shared/components/overlay/variations/float-overlay.js.map +1 -1
- package/lib/module/shared/components/overlay/variations/overlay-host.js +1 -1
- package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/module/shared/components/overlay/variations/screen-overlay.js +4 -3
- package/lib/module/shared/components/overlay/variations/screen-overlay.js.map +1 -1
- package/lib/module/shared/components/scene-view.js +29 -0
- package/lib/module/shared/components/scene-view.js.map +1 -0
- package/lib/module/shared/{hooks → components/screen-container/hooks}/use-backdrop-pointer-events.js +7 -5
- package/lib/module/shared/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -0
- package/lib/module/shared/components/screen-container/index.js +28 -0
- package/lib/module/shared/components/screen-container/index.js.map +1 -0
- package/lib/module/shared/components/screen-container/layers/backdrop.js +96 -0
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -0
- package/lib/module/shared/components/screen-container/layers/content.js +112 -0
- package/lib/module/shared/components/screen-container/layers/content.js.map +1 -0
- package/lib/module/shared/components/screen-container/layers/surface-container.js +47 -0
- package/lib/module/shared/components/screen-container/layers/surface-container.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js +36 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js +22 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js +42 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js.map +1 -0
- package/lib/module/shared/{hooks/lifecycle/use-close-transition.js → components/screen-lifecycle/hooks/use-close-transition/index.js} +39 -18
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +1 -0
- package/lib/module/shared/{hooks/animation → components/screen-lifecycle/hooks}/use-high-refresh-rate.js +1 -2
- package/lib/module/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js.map +1 -0
- package/lib/module/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-open-transition.js +12 -3
- package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +1 -0
- package/lib/module/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-screen-events.js +2 -2
- package/lib/module/shared/components/screen-lifecycle/hooks/use-screen-events.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/index.js +31 -0
- package/lib/module/shared/components/screen-lifecycle/index.js.map +1 -0
- package/lib/module/shared/configs/index.js +4 -2
- package/lib/module/shared/configs/index.js.map +1 -1
- package/lib/module/shared/configs/presets.js +222 -203
- package/lib/module/shared/configs/presets.js.map +1 -1
- package/lib/module/shared/configs/specs.js +7 -0
- package/lib/module/shared/configs/specs.js.map +1 -1
- package/lib/module/shared/constants.js +18 -8
- package/lib/module/shared/constants.js.map +1 -1
- package/lib/module/shared/hooks/animation/use-associated-style.js +221 -30
- package/lib/module/shared/hooks/animation/use-associated-style.js.map +1 -1
- package/lib/module/shared/hooks/gestures/use-screen-gesture.js +1 -1
- package/lib/module/shared/hooks/gestures/use-screen-gesture.js.map +1 -1
- package/lib/module/shared/hooks/gestures/use-scroll-registry.js +1 -1
- package/lib/module/shared/hooks/gestures/use-scroll-registry.js.map +1 -1
- package/lib/module/shared/hooks/navigation/use-closing-route-keys.js.map +1 -1
- package/lib/module/shared/hooks/navigation/use-navigation-helpers.js +26 -0
- package/lib/module/shared/hooks/navigation/use-navigation-helpers.js.map +1 -0
- package/lib/module/shared/hooks/navigation/use-previous.js.map +1 -1
- package/lib/module/shared/hooks/navigation/use-screen-state.js +2 -2
- package/lib/module/shared/hooks/navigation/use-screen-state.js.map +1 -1
- package/lib/module/shared/hooks/navigation/use-stack.js +0 -20
- package/lib/module/shared/hooks/navigation/use-stack.js.map +1 -1
- package/lib/module/shared/hooks/navigation/use-tab-press-reset.js +28 -0
- package/lib/module/shared/hooks/navigation/use-tab-press-reset.js.map +1 -0
- package/lib/module/shared/hooks/reanimated/use-shared-value-ref.js +33 -0
- package/lib/module/shared/hooks/reanimated/use-shared-value-ref.js.map +1 -0
- package/lib/module/shared/hooks/reanimated/use-shared-value-state.js +3 -14
- package/lib/module/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
- package/lib/module/shared/index.js +6 -1
- package/lib/module/shared/index.js.map +1 -1
- package/lib/module/shared/providers/gestures/gestures.provider.js +87 -0
- package/lib/module/shared/providers/gestures/gestures.provider.js.map +1 -0
- package/lib/module/shared/{hooks/gestures/use-screen-gesture-handlers.js → providers/gestures/handlers/use-handlers.js} +64 -85
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +1 -0
- package/lib/module/shared/{utils/gesture/check-gesture-activation.js → providers/gestures/helpers/gesture-activation.js} +2 -2
- package/lib/module/shared/providers/gestures/helpers/gesture-activation.js.map +1 -0
- package/lib/module/shared/{utils/gesture/should-defer-to-child-claim.js → providers/gestures/helpers/gesture-claims.js} +1 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-claims.js.map +1 -0
- package/lib/module/shared/providers/gestures/helpers/gesture-directions.js +47 -0
- package/lib/module/shared/providers/gestures/helpers/gesture-directions.js.map +1 -0
- package/lib/module/shared/{utils/gesture/velocity.js → providers/gestures/helpers/gesture-physics.js} +56 -30
- package/lib/module/shared/providers/gestures/helpers/gesture-physics.js.map +1 -0
- package/lib/module/shared/providers/gestures/helpers/gesture-reset.js +71 -0
- package/lib/module/shared/providers/gestures/helpers/gesture-reset.js.map +1 -0
- package/lib/module/shared/{utils/gesture/determine-snap-target.js → providers/gestures/helpers/gesture-targets.js} +48 -3
- package/lib/module/shared/providers/gestures/helpers/gesture-targets.js.map +1 -0
- package/lib/module/shared/providers/gestures/helpers/register-direction-claims.js +70 -0
- package/lib/module/shared/providers/gestures/helpers/register-direction-claims.js.map +1 -0
- package/lib/module/shared/providers/gestures/index.js +4 -0
- package/lib/module/shared/providers/gestures/index.js.map +1 -0
- package/lib/module/shared/providers/gestures/types.js +9 -0
- package/lib/module/shared/providers/gestures/types.js.map +1 -0
- package/lib/module/shared/{hooks → providers}/gestures/use-build-gestures.js +24 -31
- package/lib/module/shared/providers/gestures/use-build-gestures.js.map +1 -0
- package/lib/module/shared/providers/layout-anchor.provider.js +19 -6
- package/lib/module/shared/providers/layout-anchor.provider.js.map +1 -1
- package/lib/module/shared/providers/register-bounds.provider.js +124 -76
- package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/animation.provider.js +40 -0
- package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -0
- package/lib/module/shared/{utils/animation → providers/screen/animation/helpers}/derivations.js +6 -2
- package/lib/module/shared/providers/screen/animation/helpers/derivations.js.map +1 -0
- package/lib/module/shared/{hooks/animation/use-screen-animation.js → providers/screen/animation/helpers/pipeline.js} +70 -44
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/worklet.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/index.js +5 -0
- package/lib/module/shared/providers/screen/animation/index.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js +10 -0
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -0
- package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js +84 -0
- package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -0
- package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +37 -0
- package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -0
- package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js +27 -0
- package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +1 -0
- package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js +24 -0
- package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js.map +1 -0
- package/lib/module/shared/providers/screen/descriptors/index.js +4 -0
- package/lib/module/shared/providers/screen/descriptors/index.js.map +1 -0
- package/lib/module/shared/providers/screen/screen-composer.js +12 -11
- package/lib/module/shared/providers/screen/screen-composer.js.map +1 -1
- package/lib/module/shared/providers/screen/styles.provider.js +35 -24
- package/lib/module/shared/providers/screen/styles.provider.js.map +1 -1
- package/lib/module/shared/providers/scroll-settle.provider.js +19 -0
- package/lib/module/shared/providers/scroll-settle.provider.js.map +1 -0
- package/lib/module/shared/providers/stack/core.provider.js +14 -8
- package/lib/module/shared/providers/stack/core.provider.js.map +1 -1
- package/lib/module/shared/providers/stack/direct.provider.js +15 -66
- package/lib/module/shared/providers/stack/direct.provider.js.map +1 -1
- package/lib/module/shared/providers/stack/helpers/use-closing-route-map.js +25 -0
- package/lib/module/shared/providers/stack/helpers/use-closing-route-map.js.map +1 -0
- package/lib/module/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/align-routes-with-latest.js +2 -1
- package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/align-routes-with-latest.js.map +1 -0
- package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/are-descriptors-equal.js.map +1 -0
- package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/have-same-route-keys.js.map +1 -0
- package/lib/module/shared/providers/stack/helpers/use-local-routes/helpers/routes-are-identical.js.map +1 -0
- package/lib/module/shared/providers/stack/helpers/use-local-routes/index.js +95 -0
- package/lib/module/shared/providers/stack/helpers/use-local-routes/index.js.map +1 -0
- package/lib/module/shared/providers/stack/helpers/use-processed-routes.js +54 -0
- package/lib/module/shared/providers/stack/helpers/use-processed-routes.js.map +1 -0
- package/lib/module/shared/providers/stack/helpers/use-stack-derived.js +33 -0
- package/lib/module/shared/providers/stack/helpers/use-stack-derived.js.map +1 -0
- package/lib/module/shared/providers/stack/managed.provider.js +37 -125
- package/lib/module/shared/providers/stack/managed.provider.js.map +1 -1
- package/lib/module/shared/providers/viewport.provider.js +27 -0
- package/lib/module/shared/providers/viewport.provider.js.map +1 -0
- package/lib/module/shared/stores/animation.store.js +34 -21
- package/lib/module/shared/stores/animation.store.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +38 -0
- package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +1 -0
- package/lib/module/shared/stores/bounds/helpers/keys.js +19 -0
- package/lib/module/shared/stores/bounds/helpers/keys.js.map +1 -0
- package/lib/module/shared/stores/bounds/helpers/matching.js +17 -0
- package/lib/module/shared/stores/bounds/helpers/matching.js.map +1 -0
- package/lib/module/shared/stores/bounds/index.js +33 -0
- package/lib/module/shared/stores/bounds/index.js.map +1 -0
- package/lib/module/shared/stores/bounds/internals/clear.js +242 -0
- package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -0
- package/lib/module/shared/stores/bounds/internals/presence.js +118 -0
- package/lib/module/shared/stores/bounds/internals/presence.js.map +1 -0
- package/lib/module/shared/stores/bounds/internals/registry.js +295 -0
- package/lib/module/shared/stores/bounds/internals/registry.js.map +1 -0
- package/lib/module/shared/stores/bounds/internals/resolver.js +120 -0
- package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -0
- package/lib/module/shared/stores/bounds/internals/state.js +93 -0
- package/lib/module/shared/stores/bounds/internals/state.js.map +1 -0
- package/lib/module/shared/stores/bounds/types.js +4 -0
- package/lib/module/shared/stores/bounds/types.js.map +1 -0
- package/lib/module/shared/stores/gesture.store.js +36 -16
- package/lib/module/shared/stores/gesture.store.js.map +1 -1
- package/lib/module/shared/types/gesture.types.js +5 -0
- package/lib/module/shared/types/gesture.types.js.map +1 -1
- package/lib/module/shared/types/providers/direct-stack.types.js +4 -0
- package/lib/module/shared/types/providers/direct-stack.types.js.map +1 -0
- package/lib/module/shared/types/providers/managed-stack.types.js +4 -0
- package/lib/module/shared/types/providers/managed-stack.types.js.map +1 -0
- package/lib/module/shared/types/stack.types.js +5 -0
- package/lib/module/shared/types/stack.types.js.map +1 -1
- package/lib/module/shared/utils/animation/animate-many.js +27 -0
- package/lib/module/shared/utils/animation/animate-many.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/build-bounds-options.js +36 -0
- package/lib/module/shared/utils/bounds/helpers/build-bounds-options.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js +132 -0
- package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/constants.js +11 -0
- package/lib/module/shared/utils/bounds/helpers/constants.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/geometry.js +3 -2
- package/lib/module/shared/utils/bounds/helpers/geometry.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/interpolate-style.js +2 -2
- package/lib/module/shared/utils/bounds/helpers/interpolate-style.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/interpolate.js +16 -0
- package/lib/module/shared/utils/bounds/helpers/interpolate.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/interpolators.js +62 -0
- package/lib/module/shared/utils/bounds/helpers/interpolators.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/link-accessor.js +35 -0
- package/lib/module/shared/utils/bounds/helpers/link-accessor.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/math.js +115 -0
- package/lib/module/shared/utils/bounds/helpers/math.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/navigation-accessor.js +40 -0
- package/lib/module/shared/utils/bounds/helpers/navigation-accessor.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js +20 -0
- package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/style-composers.js +154 -21
- package/lib/module/shared/utils/bounds/helpers/style-composers.js.map +1 -1
- package/lib/module/shared/utils/bounds/index.js +86 -187
- package/lib/module/shared/utils/bounds/index.js.map +1 -1
- package/lib/module/shared/utils/bounds/sugar/navigation/helpers.js +54 -0
- package/lib/module/shared/utils/bounds/sugar/navigation/helpers.js.map +1 -0
- package/lib/module/shared/utils/bounds/sugar/navigation/index.js +15 -0
- package/lib/module/shared/utils/bounds/sugar/navigation/index.js.map +1 -0
- package/lib/module/shared/utils/bounds/sugar/navigation/types.js +4 -0
- package/lib/module/shared/utils/bounds/sugar/navigation/types.js.map +1 -0
- package/lib/module/shared/utils/bounds/sugar/navigation/zoom.js +290 -0
- package/lib/module/shared/utils/bounds/sugar/navigation/zoom.js.map +1 -0
- package/lib/module/shared/utils/bounds/types/options.js +4 -0
- package/lib/module/shared/utils/bounds/types/{builder.js.map → options.js.map} +1 -1
- package/lib/module/shared/utils/create-provider.js +1 -23
- package/lib/module/shared/utils/create-provider.js.map +1 -1
- package/lib/module/shared/utils/gesture/find-collapse-target.js +2 -1
- package/lib/module/shared/utils/gesture/find-collapse-target.js.map +1 -1
- package/lib/module/shared/utils/gesture/resolve-ownership.js +0 -27
- package/lib/module/shared/utils/gesture/resolve-ownership.js.map +1 -1
- package/lib/module/shared/utils/gesture/validate-snap-points.js +10 -1
- package/lib/module/shared/utils/gesture/validate-snap-points.js.map +1 -1
- package/lib/module/shared/utils/logger.js +0 -1
- package/lib/module/shared/utils/logger.js.map +1 -1
- package/lib/module/shared/utils/navigation/compose-descriptors.js.map +1 -1
- package/lib/module/shared/utils/navigation/resolve-scene-neighbors.js +66 -0
- package/lib/module/shared/utils/navigation/resolve-scene-neighbors.js.map +1 -0
- package/lib/module/shared/utils/navigation/sync-routes-with-removed.js.map +1 -1
- package/lib/module/shared/utils/normalize-interpolated-style.js +64 -0
- package/lib/module/shared/utils/normalize-interpolated-style.js.map +1 -0
- package/lib/module/shared/utils/overlay/visibility.js +1 -1
- package/lib/module/shared/utils/overlay/visibility.js.map +1 -1
- package/lib/module/shared/utils/platform.js +9 -0
- package/lib/module/shared/utils/platform.js.map +1 -0
- package/lib/typescript/blank-stack/components/stack-view.d.ts +1 -2
- package/lib/typescript/blank-stack/components/stack-view.d.ts.map +1 -1
- package/lib/typescript/blank-stack/components/stack-view.native.d.ts +1 -2
- package/lib/typescript/blank-stack/components/stack-view.native.d.ts.map +1 -1
- package/lib/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts.map +1 -1
- package/lib/typescript/component-stack/components/stack-view.d.ts +1 -2
- package/lib/typescript/component-stack/components/stack-view.d.ts.map +1 -1
- package/lib/typescript/native-stack/navigators/createNativeStackNavigator.d.ts.map +1 -1
- package/lib/typescript/native-stack/views/NativeStackView.native.d.ts +1 -1
- package/lib/typescript/native-stack/views/NativeStackView.native.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts +2 -0
- package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts +8 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts +23 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts +11 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts +18 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts +10 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts +8 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts +12 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts +10 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts +30 -0
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts +38 -0
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts +9 -0
- package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/native-screen.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/variations/float-overlay.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts +3 -7
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/variations/screen-overlay.d.ts.map +1 -1
- package/lib/typescript/shared/components/scene-view.d.ts +13 -0
- package/lib/typescript/shared/components/scene-view.d.ts.map +1 -0
- package/lib/typescript/shared/{hooks → components/screen-container/hooks}/use-backdrop-pointer-events.d.ts +1 -0
- package/lib/typescript/shared/components/screen-container/hooks/use-backdrop-pointer-events.d.ts.map +1 -0
- package/lib/typescript/shared/components/{screen-container.d.ts → screen-container/index.d.ts} +1 -1
- package/lib/typescript/shared/components/screen-container/index.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts +2 -0
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-container/layers/content.d.ts +6 -0
- package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-container/layers/surface-container.d.ts +8 -0
- package/lib/typescript/shared/components/screen-container/layers/surface-container.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.d.ts +11 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.d.ts +2 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.d.ts +2 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/index.d.ts +7 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/index.d.ts.map +1 -0
- package/lib/typescript/shared/{hooks/animation → components/screen-lifecycle/hooks}/use-high-refresh-rate.d.ts +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.d.ts.map +1 -0
- package/lib/typescript/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-open-transition.d.ts +3 -3
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition.d.ts.map +1 -0
- package/lib/typescript/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-screen-events.d.ts +2 -2
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-screen-events.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/index.d.ts +10 -0
- package/lib/typescript/shared/components/screen-lifecycle/index.d.ts.map +1 -0
- package/lib/typescript/shared/configs/index.d.ts +2 -0
- package/lib/typescript/shared/configs/index.d.ts.map +1 -1
- package/lib/typescript/shared/configs/presets.d.ts.map +1 -1
- package/lib/typescript/shared/configs/specs.d.ts +1 -0
- package/lib/typescript/shared/configs/specs.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts +9 -5
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/animation/use-associated-style.d.ts +27 -2
- package/lib/typescript/shared/hooks/animation/use-associated-style.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/gestures/use-scroll-registry.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/navigation/use-closing-route-keys.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/navigation/use-history.d.ts +2 -1
- package/lib/typescript/shared/hooks/navigation/use-history.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/navigation/use-navigation-helpers.d.ts +4 -0
- package/lib/typescript/shared/hooks/navigation/use-navigation-helpers.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/navigation/use-previous.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/navigation/use-screen-state.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/navigation/use-stack.d.ts +1 -41
- package/lib/typescript/shared/hooks/navigation/use-stack.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/navigation/use-tab-press-reset.d.ts +10 -0
- package/lib/typescript/shared/hooks/navigation/use-tab-press-reset.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/reanimated/use-shared-value-ref.d.ts +8 -0
- package/lib/typescript/shared/hooks/reanimated/use-shared-value-ref.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/reanimated/use-shared-value-state.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +27 -16
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/gestures/gestures.provider.d.ts +19 -0
- package/lib/typescript/shared/providers/gestures/gestures.provider.d.ts.map +1 -0
- package/lib/typescript/shared/{hooks/gestures/use-screen-gesture-handlers.d.ts → providers/gestures/handlers/use-handlers.d.ts} +6 -4
- package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +1 -0
- package/lib/typescript/shared/{utils/gesture/check-gesture-activation.d.ts → providers/gestures/helpers/gesture-activation.d.ts} +7 -13
- package/lib/typescript/shared/providers/gestures/helpers/gesture-activation.d.ts.map +1 -0
- package/lib/typescript/shared/{utils/gesture/should-defer-to-child-claim.d.ts → providers/gestures/helpers/gesture-claims.d.ts} +2 -2
- package/lib/typescript/shared/providers/gestures/helpers/gesture-claims.d.ts.map +1 -0
- package/lib/typescript/shared/providers/gestures/helpers/gesture-directions.d.ts +13 -0
- package/lib/typescript/shared/providers/gestures/helpers/gesture-directions.d.ts.map +1 -0
- package/lib/typescript/shared/providers/gestures/helpers/gesture-physics.d.ts +42 -0
- package/lib/typescript/shared/providers/gestures/helpers/gesture-physics.d.ts.map +1 -0
- package/lib/typescript/shared/{utils/gesture/reset-gesture-values.d.ts → providers/gestures/helpers/gesture-reset.d.ts} +6 -4
- package/lib/typescript/shared/providers/gestures/helpers/gesture-reset.d.ts.map +1 -0
- package/lib/typescript/shared/{utils/gesture/determine-snap-target.d.ts → providers/gestures/helpers/gesture-targets.d.ts} +19 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-targets.d.ts.map +1 -0
- package/lib/typescript/shared/providers/gestures/helpers/register-direction-claims.d.ts +9 -0
- package/lib/typescript/shared/providers/gestures/helpers/register-direction-claims.d.ts.map +1 -0
- package/lib/typescript/shared/providers/gestures/index.d.ts +3 -0
- package/lib/typescript/shared/providers/gestures/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/{gestures.provider.d.ts → gestures/types.d.ts} +4 -20
- package/lib/typescript/shared/providers/gestures/types.d.ts.map +1 -0
- package/lib/typescript/shared/{hooks → providers}/gestures/use-build-gestures.d.ts +2 -2
- package/lib/typescript/shared/providers/gestures/use-build-gestures.d.ts.map +1 -0
- package/lib/typescript/shared/providers/layout-anchor.provider.d.ts +6 -1
- package/lib/typescript/shared/providers/layout-anchor.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts +13 -0
- package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -0
- package/lib/typescript/shared/{utils/animation → providers/screen/animation/helpers}/derivations.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +11 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -0
- package/lib/typescript/shared/{utils/animation → providers/screen/animation/helpers}/worklet.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/worklet.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/index.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/animation/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts +26 -0
- package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts +24 -0
- package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts +8 -0
- package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/descriptors/index.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/descriptors/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/screen-composer.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/screen-composer.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles.provider.d.ts +7 -7
- package/lib/typescript/shared/providers/screen/styles.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/scroll-settle.provider.d.ts +12 -0
- package/lib/typescript/shared/providers/scroll-settle.provider.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/core.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/stack/direct.provider.d.ts +4 -32
- package/lib/typescript/shared/providers/stack/direct.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/stack/helpers/use-closing-route-map.d.ts +7 -0
- package/lib/typescript/shared/providers/stack/helpers/use-closing-route-map.d.ts.map +1 -0
- package/lib/typescript/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/align-routes-with-latest.d.ts +1 -4
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/align-routes-with-latest.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/are-descriptors-equal.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/have-same-route-keys.d.ts +3 -0
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/have-same-route-keys.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/routes-are-identical.d.ts +3 -0
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/helpers/routes-are-identical.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/helpers/{use-local-routes.d.ts → use-local-routes/index.d.ts} +3 -3
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/helpers/use-processed-routes.d.ts +17 -0
- package/lib/typescript/shared/providers/stack/helpers/use-processed-routes.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/helpers/use-stack-derived.d.ts +18 -0
- package/lib/typescript/shared/providers/stack/helpers/use-stack-derived.d.ts.map +1 -0
- package/lib/typescript/shared/providers/stack/managed.provider.d.ts +5 -37
- package/lib/typescript/shared/providers/stack/managed.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/viewport.provider.d.ts +13 -0
- package/lib/typescript/shared/providers/viewport.provider.d.ts.map +1 -0
- package/lib/typescript/shared/stores/animation.store.d.ts +6 -4
- package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts +19 -0
- package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts +3 -0
- package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts +4 -0
- package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/index.d.ts +32 -0
- package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/internals/clear.d.ts +6 -0
- package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/internals/presence.d.ts +12 -0
- package/lib/typescript/shared/stores/bounds/internals/presence.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/internals/registry.d.ts +16 -0
- package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts +4 -0
- package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts +11 -0
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/types.d.ts +62 -0
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -0
- package/lib/typescript/shared/stores/gesture.store.d.ts +13 -4
- package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +85 -29
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/bounds.types.d.ts +17 -3
- package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/gesture.types.d.ts +27 -8
- package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/index.d.ts +2 -2
- package/lib/typescript/shared/types/index.d.ts.map +1 -1
- package/lib/typescript/shared/types/overlay.types.d.ts +8 -0
- package/lib/typescript/shared/types/overlay.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/providers/direct-stack.types.d.ts +22 -0
- package/lib/typescript/shared/types/providers/direct-stack.types.d.ts.map +1 -0
- package/lib/typescript/shared/types/providers/managed-stack.types.d.ts +45 -0
- package/lib/typescript/shared/types/providers/managed-stack.types.d.ts.map +1 -0
- package/lib/typescript/shared/types/screen.types.d.ts +62 -6
- package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/stack.types.d.ts +7 -0
- package/lib/typescript/shared/types/stack.types.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/animate-many.d.ts +13 -0
- package/lib/typescript/shared/utils/animation/animate-many.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts +14 -0
- package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts +4 -0
- package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/constants.d.ts +9 -0
- package/lib/typescript/shared/utils/bounds/helpers/constants.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/interpolate-style.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/interpolate.d.ts +2 -0
- package/lib/typescript/shared/utils/bounds/helpers/interpolate.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts +13 -0
- package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts +11 -0
- package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/math.d.ts +38 -0
- package/lib/typescript/shared/utils/bounds/helpers/math.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/navigation-accessor.d.ts +16 -0
- package/lib/typescript/shared/utils/bounds/helpers/navigation-accessor.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts +6 -0
- package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts +4 -4
- package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/index.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/sugar/navigation/helpers.d.ts +17 -0
- package/lib/typescript/shared/utils/bounds/sugar/navigation/helpers.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/sugar/navigation/index.d.ts +3 -0
- package/lib/typescript/shared/utils/bounds/sugar/navigation/index.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/sugar/navigation/types.d.ts +18 -0
- package/lib/typescript/shared/utils/bounds/sugar/navigation/types.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/sugar/navigation/zoom.d.ts +4 -0
- package/lib/typescript/shared/utils/bounds/sugar/navigation/zoom.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/types/{builder.d.ts → options.d.ts} +15 -7
- package/lib/typescript/shared/utils/bounds/types/{builder.d.ts.map → options.d.ts.map} +1 -1
- package/lib/typescript/shared/utils/create-provider.d.ts +2 -2
- package/lib/typescript/shared/utils/create-provider.d.ts.map +1 -1
- package/lib/typescript/shared/utils/gesture/find-collapse-target.d.ts.map +1 -1
- package/lib/typescript/shared/utils/gesture/resolve-ownership.d.ts +2 -10
- package/lib/typescript/shared/utils/gesture/resolve-ownership.d.ts.map +1 -1
- package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts +7 -2
- package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts.map +1 -1
- package/lib/typescript/shared/utils/logger.d.ts +0 -1
- package/lib/typescript/shared/utils/logger.d.ts.map +1 -1
- package/lib/typescript/shared/utils/navigation/compose-descriptors.d.ts +1 -4
- package/lib/typescript/shared/utils/navigation/compose-descriptors.d.ts.map +1 -1
- package/lib/typescript/shared/utils/navigation/resolve-scene-neighbors.d.ts +25 -0
- package/lib/typescript/shared/utils/navigation/resolve-scene-neighbors.d.ts.map +1 -0
- package/lib/typescript/shared/utils/navigation/sync-routes-with-removed.d.ts +1 -3
- package/lib/typescript/shared/utils/navigation/sync-routes-with-removed.d.ts.map +1 -1
- package/lib/typescript/shared/utils/normalize-interpolated-style.d.ts +17 -0
- package/lib/typescript/shared/utils/normalize-interpolated-style.d.ts.map +1 -0
- package/lib/typescript/shared/utils/overlay/visibility.d.ts +0 -1
- package/lib/typescript/shared/utils/overlay/visibility.d.ts.map +1 -1
- package/lib/typescript/shared/utils/platform.d.ts +5 -0
- package/lib/typescript/shared/utils/platform.d.ts.map +1 -0
- package/package.json +3 -1
- package/src/blank-stack/components/stack-view.native.tsx +15 -34
- package/src/blank-stack/components/stack-view.tsx +15 -34
- package/src/blank-stack/navigators/create-blank-stack-navigator.tsx +2 -28
- package/src/component-stack/components/component-screen.tsx +1 -1
- package/src/component-stack/components/stack-view.tsx +8 -30
- package/src/native-stack/navigators/createNativeStackNavigator.tsx +2 -28
- package/src/native-stack/views/NativeStackView.native.tsx +1 -4
- package/src/shared/animation/snap-to.ts +1 -1
- package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +16 -0
- package/src/shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts +50 -0
- package/src/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts +177 -0
- package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +55 -0
- package/src/shared/components/create-boundary-component/hooks/use-group-active-measurement.ts +59 -0
- package/src/shared/components/create-boundary-component/hooks/use-initial-layout-handler.ts +83 -0
- package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +47 -0
- package/src/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.ts +83 -0
- package/src/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.ts +40 -0
- package/src/shared/components/create-boundary-component/index.tsx +263 -0
- package/src/shared/components/create-boundary-component/types.ts +47 -0
- package/src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts +29 -0
- package/src/shared/components/create-transition-aware-component.tsx +53 -9
- package/src/shared/components/native-screen.tsx +4 -8
- package/src/shared/components/overlay/variations/float-overlay.tsx +25 -28
- package/src/shared/components/overlay/variations/overlay-host.tsx +7 -12
- package/src/shared/components/overlay/variations/screen-overlay.tsx +6 -12
- package/src/shared/components/scene-view.tsx +32 -0
- package/src/shared/{hooks → components/screen-container/hooks}/use-backdrop-pointer-events.ts +9 -5
- package/src/shared/components/screen-container/index.tsx +26 -0
- package/src/shared/components/screen-container/layers/backdrop.tsx +111 -0
- package/src/shared/components/screen-container/layers/content.tsx +133 -0
- package/src/shared/components/screen-container/layers/surface-container.tsx +55 -0
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.ts +46 -0
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.ts +27 -0
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.ts +58 -0
- package/src/shared/{hooks/lifecycle/use-close-transition.ts → components/screen-lifecycle/hooks/use-close-transition/index.ts} +43 -20
- package/src/shared/{hooks/animation/use-high-refresh-rate.tsx → components/screen-lifecycle/hooks/use-high-refresh-rate.ts} +2 -2
- package/src/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-open-transition.ts +15 -4
- package/src/shared/{hooks/lifecycle → components/screen-lifecycle/hooks}/use-screen-events.ts +4 -4
- package/src/shared/components/screen-lifecycle/index.tsx +36 -0
- package/src/shared/configs/index.ts +3 -1
- package/src/shared/configs/presets.ts +189 -153
- package/src/shared/configs/specs.ts +8 -0
- package/src/shared/constants.ts +18 -6
- package/src/shared/hooks/animation/use-associated-style.ts +347 -0
- package/src/shared/hooks/gestures/use-screen-gesture.ts +1 -1
- package/src/shared/hooks/gestures/{use-scroll-registry.tsx → use-scroll-registry.ts} +1 -1
- package/src/shared/hooks/navigation/use-history.ts +1 -1
- package/src/shared/hooks/navigation/use-navigation-helpers.ts +25 -0
- package/src/shared/hooks/navigation/{use-previous.tsx → use-previous.ts} +1 -1
- package/src/shared/hooks/navigation/{use-screen-state.tsx → use-screen-state.ts} +3 -3
- package/src/shared/hooks/navigation/use-stack.tsx +1 -41
- package/src/shared/hooks/navigation/use-tab-press-reset.ts +41 -0
- package/src/shared/hooks/reanimated/use-shared-value-ref.ts +43 -0
- package/src/shared/hooks/reanimated/use-shared-value-state.ts +2 -13
- package/src/shared/index.ts +20 -1
- package/src/shared/providers/gestures/gestures.provider.tsx +127 -0
- package/src/shared/{hooks/gestures/use-screen-gesture-handlers.ts → providers/gestures/handlers/use-handlers.ts} +109 -126
- package/src/shared/{utils/gesture/check-gesture-activation.ts → providers/gestures/helpers/gesture-activation.ts} +6 -13
- package/src/shared/{utils/gesture/should-defer-to-child-claim.ts → providers/gestures/helpers/gesture-claims.ts} +1 -1
- package/src/shared/providers/gestures/helpers/gesture-directions.ts +97 -0
- package/src/shared/{utils/gesture/velocity.ts → providers/gestures/helpers/gesture-physics.ts} +97 -48
- package/src/shared/providers/gestures/helpers/gesture-reset.ts +108 -0
- package/src/shared/{utils/gesture/determine-snap-target.ts → providers/gestures/helpers/gesture-targets.ts} +81 -4
- package/src/shared/providers/gestures/helpers/register-direction-claims.ts +84 -0
- package/src/shared/providers/gestures/index.tsx +10 -0
- package/src/shared/providers/gestures/types.ts +45 -0
- package/src/shared/{hooks/gestures/use-build-gestures.tsx → providers/gestures/use-build-gestures.ts} +30 -45
- package/src/shared/providers/layout-anchor.provider.tsx +34 -3
- package/src/shared/providers/register-bounds.provider.tsx +169 -113
- package/src/shared/providers/screen/animation/animation.provider.tsx +57 -0
- package/src/shared/{utils/animation → providers/screen/animation/helpers}/derivations.ts +5 -5
- package/src/shared/{hooks/animation/use-screen-animation.tsx → providers/screen/animation/helpers/pipeline.ts} +109 -48
- package/src/shared/{utils/animation → providers/screen/animation/helpers}/worklet.ts +1 -1
- package/src/shared/providers/screen/animation/index.tsx +5 -0
- package/src/shared/providers/screen/animation/use-screen-animation.tsx +6 -0
- package/src/shared/providers/screen/descriptors/descriptors.provider.tsx +113 -0
- package/src/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +67 -0
- package/src/shared/providers/screen/descriptors/helpers/get-ancestor-keys.ts +30 -0
- package/src/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.ts +29 -0
- package/src/shared/providers/screen/descriptors/index.tsx +6 -0
- package/src/shared/providers/screen/screen-composer.tsx +12 -9
- package/src/shared/providers/screen/styles.provider.tsx +122 -105
- package/src/shared/providers/scroll-settle.provider.tsx +24 -0
- package/src/shared/providers/stack/core.provider.tsx +13 -8
- package/src/shared/providers/stack/direct.provider.tsx +19 -110
- package/src/shared/providers/stack/helpers/use-closing-route-map.ts +28 -0
- package/src/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/align-routes-with-latest.ts +2 -5
- package/src/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/have-same-route-keys.ts +1 -3
- package/src/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/routes-are-identical.ts +1 -3
- package/src/shared/providers/stack/helpers/use-local-routes/index.ts +147 -0
- package/src/shared/providers/stack/helpers/use-processed-routes.ts +85 -0
- package/src/shared/providers/stack/helpers/use-stack-derived.ts +43 -0
- package/src/shared/providers/stack/managed.provider.tsx +65 -190
- package/src/shared/providers/viewport.provider.tsx +39 -0
- package/src/shared/stores/animation.store.ts +42 -20
- package/src/shared/stores/bounds/helpers/apply-measured-bounds-writes.ts +101 -0
- package/src/shared/stores/bounds/helpers/keys.ts +21 -0
- package/src/shared/stores/bounds/helpers/matching.ts +25 -0
- package/src/shared/stores/bounds/index.ts +60 -0
- package/src/shared/stores/bounds/internals/clear.ts +335 -0
- package/src/shared/stores/bounds/internals/presence.ts +146 -0
- package/src/shared/stores/bounds/internals/registry.ts +408 -0
- package/src/shared/stores/bounds/internals/resolver.ts +213 -0
- package/src/shared/stores/bounds/internals/state.ts +115 -0
- package/src/shared/stores/bounds/types.ts +76 -0
- package/src/shared/stores/gesture.store.ts +52 -27
- package/src/shared/types/animation.types.ts +92 -30
- package/src/shared/types/bounds.types.ts +25 -5
- package/src/shared/types/gesture.types.ts +29 -8
- package/src/shared/types/index.ts +11 -0
- package/src/shared/types/overlay.types.ts +12 -0
- package/src/shared/types/providers/direct-stack.types.ts +35 -0
- package/src/shared/types/providers/managed-stack.types.ts +59 -0
- package/src/shared/types/screen.types.ts +66 -6
- package/src/shared/types/stack.types.ts +8 -0
- package/src/shared/utils/animation/animate-many.ts +40 -0
- package/src/shared/utils/bounds/helpers/build-bounds-options.ts +48 -0
- package/src/shared/utils/bounds/helpers/compute-bounds-styles.ts +180 -0
- package/src/shared/utils/bounds/helpers/constants.ts +10 -0
- package/src/shared/utils/bounds/helpers/geometry.ts +4 -3
- package/src/shared/utils/bounds/helpers/interpolate-style.ts +2 -2
- package/src/shared/utils/bounds/helpers/interpolate.ts +19 -0
- package/src/shared/utils/bounds/helpers/interpolators.ts +108 -0
- package/src/shared/utils/bounds/helpers/link-accessor.ts +40 -0
- package/src/shared/utils/bounds/helpers/math.ts +161 -0
- package/src/shared/utils/bounds/helpers/navigation-accessor.ts +61 -0
- package/src/shared/utils/bounds/helpers/resolve-bound-tag.ts +26 -0
- package/src/shared/utils/bounds/helpers/style-composers.ts +132 -57
- package/src/shared/utils/bounds/index.ts +115 -254
- package/src/shared/utils/bounds/sugar/navigation/helpers.ts +74 -0
- package/src/shared/utils/bounds/sugar/navigation/index.ts +14 -0
- package/src/shared/utils/bounds/sugar/navigation/types.ts +26 -0
- package/src/shared/utils/bounds/sugar/navigation/zoom.ts +348 -0
- package/src/shared/utils/bounds/types/{builder.ts → options.ts} +26 -18
- package/src/shared/utils/create-provider.tsx +0 -27
- package/src/shared/utils/gesture/find-collapse-target.ts +2 -3
- package/src/shared/utils/gesture/resolve-ownership.ts +1 -37
- package/src/shared/utils/gesture/validate-snap-points.ts +17 -5
- package/src/shared/utils/logger.ts +0 -3
- package/src/shared/utils/navigation/compose-descriptors.ts +1 -3
- package/src/shared/utils/navigation/resolve-scene-neighbors.ts +89 -0
- package/src/shared/utils/navigation/sync-routes-with-removed.ts +1 -4
- package/src/shared/utils/normalize-interpolated-style.ts +67 -0
- package/src/shared/utils/overlay/visibility.ts +1 -1
- package/src/shared/utils/platform.ts +6 -0
- package/lib/commonjs/shared/components/screen-container.js +0 -129
- package/lib/commonjs/shared/components/screen-container.js.map +0 -1
- package/lib/commonjs/shared/components/screen-lifecycle.js +0 -29
- package/lib/commonjs/shared/components/screen-lifecycle.js.map +0 -1
- package/lib/commonjs/shared/hooks/animation/use-high-refresh-rate.js.map +0 -1
- package/lib/commonjs/shared/hooks/animation/use-screen-animation.js.map +0 -1
- package/lib/commonjs/shared/hooks/gestures/use-build-gestures.js.map +0 -1
- package/lib/commonjs/shared/hooks/gestures/use-screen-gesture-handlers.js.map +0 -1
- package/lib/commonjs/shared/hooks/lifecycle/use-close-transition.js.map +0 -1
- package/lib/commonjs/shared/hooks/lifecycle/use-open-transition.js.map +0 -1
- package/lib/commonjs/shared/hooks/lifecycle/use-screen-events.js.map +0 -1
- package/lib/commonjs/shared/hooks/use-backdrop-pointer-events.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures.provider.js +0 -169
- package/lib/commonjs/shared/providers/gestures.provider.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/keys.provider.js +0 -40
- package/lib/commonjs/shared/providers/screen/keys.provider.js.map +0 -1
- package/lib/commonjs/shared/providers/stack/helpers/active-screens-limit.js +0 -23
- package/lib/commonjs/shared/providers/stack/helpers/active-screens-limit.js.map +0 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes.js +0 -93
- package/lib/commonjs/shared/providers/stack/helpers/use-local-routes.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds.store.js +0 -231
- package/lib/commonjs/shared/stores/bounds.store.js.map +0 -1
- package/lib/commonjs/shared/utils/animation/derivations.js.map +0 -1
- package/lib/commonjs/shared/utils/animation/worklet.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/check-gesture-activation.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/determine-dismissal.js +0 -50
- package/lib/commonjs/shared/utils/gesture/determine-dismissal.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/determine-snap-target.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/map-gesture-to-progress.js +0 -17
- package/lib/commonjs/shared/utils/gesture/map-gesture-to-progress.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/reset-gesture-values.js +0 -56
- package/lib/commonjs/shared/utils/gesture/reset-gesture-values.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/should-defer-to-child-claim.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/velocity.js +0 -111
- package/lib/commonjs/shared/utils/gesture/velocity.js.map +0 -1
- package/lib/commonjs/shared/utils/navigation/align-routes-with-latest.js.map +0 -1
- package/lib/commonjs/shared/utils/navigation/are-descriptors-equal.js.map +0 -1
- package/lib/commonjs/shared/utils/navigation/have-same-route-keys.js.map +0 -1
- package/lib/commonjs/shared/utils/navigation/routes-are-identical.js.map +0 -1
- package/lib/commonjs/shared/utils/reset-stores-for-screen.js +0 -20
- package/lib/commonjs/shared/utils/reset-stores-for-screen.js.map +0 -1
- package/lib/module/shared/components/screen-container.js +0 -123
- package/lib/module/shared/components/screen-container.js.map +0 -1
- package/lib/module/shared/components/screen-lifecycle.js +0 -24
- package/lib/module/shared/components/screen-lifecycle.js.map +0 -1
- package/lib/module/shared/hooks/animation/use-high-refresh-rate.js.map +0 -1
- package/lib/module/shared/hooks/animation/use-screen-animation.js.map +0 -1
- package/lib/module/shared/hooks/gestures/use-build-gestures.js.map +0 -1
- package/lib/module/shared/hooks/gestures/use-screen-gesture-handlers.js.map +0 -1
- package/lib/module/shared/hooks/lifecycle/use-close-transition.js.map +0 -1
- package/lib/module/shared/hooks/lifecycle/use-open-transition.js.map +0 -1
- package/lib/module/shared/hooks/lifecycle/use-screen-events.js.map +0 -1
- package/lib/module/shared/hooks/use-backdrop-pointer-events.js.map +0 -1
- package/lib/module/shared/providers/gestures.provider.js +0 -162
- package/lib/module/shared/providers/gestures.provider.js.map +0 -1
- package/lib/module/shared/providers/screen/keys.provider.js +0 -35
- package/lib/module/shared/providers/screen/keys.provider.js.map +0 -1
- package/lib/module/shared/providers/stack/helpers/active-screens-limit.js +0 -19
- package/lib/module/shared/providers/stack/helpers/active-screens-limit.js.map +0 -1
- package/lib/module/shared/providers/stack/helpers/use-local-routes.js +0 -87
- package/lib/module/shared/providers/stack/helpers/use-local-routes.js.map +0 -1
- package/lib/module/shared/stores/bounds.store.js +0 -227
- package/lib/module/shared/stores/bounds.store.js.map +0 -1
- package/lib/module/shared/utils/animation/derivations.js.map +0 -1
- package/lib/module/shared/utils/animation/worklet.js.map +0 -1
- package/lib/module/shared/utils/bounds/types/builder.js +0 -4
- package/lib/module/shared/utils/gesture/check-gesture-activation.js.map +0 -1
- package/lib/module/shared/utils/gesture/determine-dismissal.js +0 -45
- package/lib/module/shared/utils/gesture/determine-dismissal.js.map +0 -1
- package/lib/module/shared/utils/gesture/determine-snap-target.js.map +0 -1
- package/lib/module/shared/utils/gesture/map-gesture-to-progress.js +0 -12
- package/lib/module/shared/utils/gesture/map-gesture-to-progress.js.map +0 -1
- package/lib/module/shared/utils/gesture/reset-gesture-values.js +0 -51
- package/lib/module/shared/utils/gesture/reset-gesture-values.js.map +0 -1
- package/lib/module/shared/utils/gesture/should-defer-to-child-claim.js.map +0 -1
- package/lib/module/shared/utils/gesture/velocity.js.map +0 -1
- package/lib/module/shared/utils/navigation/align-routes-with-latest.js.map +0 -1
- package/lib/module/shared/utils/navigation/are-descriptors-equal.js.map +0 -1
- package/lib/module/shared/utils/navigation/have-same-route-keys.js.map +0 -1
- package/lib/module/shared/utils/navigation/routes-are-identical.js.map +0 -1
- package/lib/module/shared/utils/reset-stores-for-screen.js +0 -15
- package/lib/module/shared/utils/reset-stores-for-screen.js.map +0 -1
- package/lib/typescript/shared/components/screen-container.d.ts.map +0 -1
- package/lib/typescript/shared/components/screen-lifecycle.d.ts +0 -12
- package/lib/typescript/shared/components/screen-lifecycle.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/animation/use-high-refresh-rate.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts +0 -8
- package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/gestures/use-build-gestures.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/gestures/use-screen-gesture-handlers.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/lifecycle/use-close-transition.d.ts +0 -13
- package/lib/typescript/shared/hooks/lifecycle/use-close-transition.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/lifecycle/use-open-transition.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/lifecycle/use-screen-events.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/use-backdrop-pointer-events.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures.provider.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/keys.provider.d.ts +0 -22
- package/lib/typescript/shared/providers/screen/keys.provider.d.ts.map +0 -1
- package/lib/typescript/shared/providers/stack/helpers/active-screens-limit.d.ts +0 -9
- package/lib/typescript/shared/providers/stack/helpers/active-screens-limit.d.ts.map +0 -1
- package/lib/typescript/shared/providers/stack/helpers/use-local-routes.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds.store.d.ts +0 -43
- package/lib/typescript/shared/stores/bounds.store.d.ts.map +0 -1
- package/lib/typescript/shared/utils/animation/derivations.d.ts.map +0 -1
- package/lib/typescript/shared/utils/animation/worklet.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/check-gesture-activation.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/determine-dismissal.d.ts +0 -24
- package/lib/typescript/shared/utils/gesture/determine-dismissal.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/determine-snap-target.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/map-gesture-to-progress.d.ts +0 -5
- package/lib/typescript/shared/utils/gesture/map-gesture-to-progress.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/reset-gesture-values.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/should-defer-to-child-claim.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/velocity.d.ts +0 -26
- package/lib/typescript/shared/utils/gesture/velocity.d.ts.map +0 -1
- package/lib/typescript/shared/utils/navigation/align-routes-with-latest.d.ts.map +0 -1
- package/lib/typescript/shared/utils/navigation/are-descriptors-equal.d.ts.map +0 -1
- package/lib/typescript/shared/utils/navigation/have-same-route-keys.d.ts +0 -6
- package/lib/typescript/shared/utils/navigation/have-same-route-keys.d.ts.map +0 -1
- package/lib/typescript/shared/utils/navigation/routes-are-identical.d.ts +0 -6
- package/lib/typescript/shared/utils/navigation/routes-are-identical.d.ts.map +0 -1
- package/lib/typescript/shared/utils/reset-stores-for-screen.d.ts +0 -7
- package/lib/typescript/shared/utils/reset-stores-for-screen.d.ts.map +0 -1
- package/src/shared/components/screen-container.tsx +0 -138
- package/src/shared/components/screen-lifecycle.tsx +0 -32
- package/src/shared/hooks/animation/use-associated-style.tsx +0 -71
- package/src/shared/providers/gestures.provider.tsx +0 -254
- package/src/shared/providers/screen/keys.provider.tsx +0 -48
- package/src/shared/providers/stack/helpers/active-screens-limit.ts +0 -35
- package/src/shared/providers/stack/helpers/use-local-routes.tsx +0 -133
- package/src/shared/stores/bounds.store.ts +0 -257
- package/src/shared/utils/gesture/determine-dismissal.ts +0 -80
- package/src/shared/utils/gesture/map-gesture-to-progress.ts +0 -11
- package/src/shared/utils/gesture/reset-gesture-values.ts +0 -67
- package/src/shared/utils/reset-stores-for-screen.ts +0 -14
- /package/lib/commonjs/shared/{utils/animation → providers/screen/animation/helpers}/worklet.js +0 -0
- /package/lib/commonjs/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/are-descriptors-equal.js +0 -0
- /package/lib/commonjs/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/have-same-route-keys.js +0 -0
- /package/lib/commonjs/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/routes-are-identical.js +0 -0
- /package/lib/module/shared/{utils/animation → providers/screen/animation/helpers}/worklet.js +0 -0
- /package/lib/module/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/are-descriptors-equal.js +0 -0
- /package/lib/module/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/have-same-route-keys.js +0 -0
- /package/lib/module/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/routes-are-identical.js +0 -0
- /package/lib/typescript/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/are-descriptors-equal.d.ts +0 -0
- /package/src/shared/hooks/navigation/{use-closing-route-keys.tsx → use-closing-route-keys.ts} +0 -0
- /package/src/shared/{utils/navigation → providers/stack/helpers/use-local-routes/helpers}/are-descriptors-equal.ts +0 -0
package/README.md
CHANGED
|
@@ -9,10 +9,13 @@ Customizable screen transitions for React Native. Build gesture-driven, shared e
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
11
11
|
- **Full Animation Control** – Define exactly how screens enter, exit, and respond to gestures
|
|
12
|
-
- **Shared Elements** – Smooth transitions between screens using the Bounds API
|
|
13
|
-
- **
|
|
12
|
+
- **Shared Elements** – Smooth transitions between screens using `Transition.Boundary` and the Bounds API
|
|
13
|
+
- **Navigation Bounds** – SwiftUI-like zoom transitions with masked reveal effects via `bounds().navigation.zoom()`
|
|
14
|
+
- **Gesture Support** – Swipe-to-dismiss with edge or full-screen activation, configurable velocity
|
|
15
|
+
- **Animated Props** – Drive component-specific props (e.g., BlurView `intensity`) alongside styles
|
|
16
|
+
- **Custom Layers** – `surfaceComponent` and `backdropComponent` with animated styles and props
|
|
14
17
|
- **Stack Progress** – Track animation progress across the entire stack
|
|
15
|
-
- **Ready-Made Presets** – Instagram, Apple Music, X (Twitter) style transitions included
|
|
18
|
+
- **Ready-Made Presets** – Instagram, Apple Music, X (Twitter), zoom navigation style transitions included
|
|
16
19
|
|
|
17
20
|
## When to Use This Library
|
|
18
21
|
|
|
@@ -140,8 +143,10 @@ options={{
|
|
|
140
143
|
screenStyleInterpolator: ({ progress }) => {
|
|
141
144
|
"worklet";
|
|
142
145
|
return {
|
|
143
|
-
|
|
144
|
-
|
|
146
|
+
content: {
|
|
147
|
+
style: {
|
|
148
|
+
opacity: interpolate(progress, [0, 1, 2], [0, 1, 0]),
|
|
149
|
+
},
|
|
145
150
|
},
|
|
146
151
|
};
|
|
147
152
|
},
|
|
@@ -155,49 +160,87 @@ options={{
|
|
|
155
160
|
screenStyleInterpolator: ({ progress, layouts: { screen } }) => {
|
|
156
161
|
"worklet";
|
|
157
162
|
return {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
163
|
+
content: {
|
|
164
|
+
style: {
|
|
165
|
+
transform: [{
|
|
166
|
+
translateX: interpolate(
|
|
167
|
+
progress,
|
|
168
|
+
[0, 1, 2],
|
|
169
|
+
[screen.width, 0, -screen.width * 0.3]
|
|
170
|
+
),
|
|
171
|
+
}],
|
|
172
|
+
},
|
|
166
173
|
},
|
|
167
174
|
};
|
|
168
175
|
},
|
|
169
176
|
}}
|
|
170
177
|
```
|
|
171
178
|
|
|
172
|
-
### Slide from Bottom
|
|
179
|
+
### Slide from Bottom with Backdrop
|
|
173
180
|
|
|
174
181
|
```tsx
|
|
175
182
|
options={{
|
|
176
183
|
screenStyleInterpolator: ({ progress, layouts: { screen } }) => {
|
|
177
184
|
"worklet";
|
|
178
185
|
return {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
186
|
+
content: {
|
|
187
|
+
style: {
|
|
188
|
+
transform: [{
|
|
189
|
+
translateY: interpolate(progress, [0, 1], [screen.height, 0]),
|
|
190
|
+
}],
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
backdrop: {
|
|
194
|
+
style: {
|
|
195
|
+
backgroundColor: "black",
|
|
196
|
+
opacity: interpolate(progress, [0, 1], [0, 0.5]),
|
|
197
|
+
},
|
|
183
198
|
},
|
|
184
199
|
};
|
|
185
200
|
},
|
|
186
201
|
}}
|
|
187
202
|
```
|
|
188
203
|
|
|
189
|
-
### Return
|
|
204
|
+
### Return Format
|
|
190
205
|
|
|
191
|
-
Your interpolator
|
|
206
|
+
Your interpolator returns a map of **slots**. The canonical format is explicit `{ style, props }`:
|
|
192
207
|
|
|
193
208
|
```tsx
|
|
194
209
|
return {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
210
|
+
content: {
|
|
211
|
+
style: { opacity: 1 },
|
|
212
|
+
}, // Main screen content
|
|
213
|
+
backdrop: {
|
|
214
|
+
style: { opacity: 0.5 },
|
|
215
|
+
props: { intensity: 80 }, // for components like BlurView
|
|
216
|
+
}, // Backdrop layer between screens
|
|
217
|
+
surface: {
|
|
218
|
+
style: { transform: [{ scale: 0.98 }] },
|
|
219
|
+
}, // Surface component layer
|
|
220
|
+
["hero-image"]: {
|
|
221
|
+
style: { borderRadius: 24 },
|
|
222
|
+
}, // Specific element via styleId
|
|
198
223
|
};
|
|
199
224
|
```
|
|
200
225
|
|
|
226
|
+
Shorthand styles are still supported and auto-wrapped as `{ style: value }`:
|
|
227
|
+
|
|
228
|
+
```tsx
|
|
229
|
+
// Shorthand
|
|
230
|
+
content: {
|
|
231
|
+
opacity: 0.5,
|
|
232
|
+
transform: [{ scale: 0.9 }],
|
|
233
|
+
},
|
|
234
|
+
|
|
235
|
+
// Explicit
|
|
236
|
+
content: {
|
|
237
|
+
style: { opacity: 0.5, transform: [{ scale: 0.9 }] },
|
|
238
|
+
props: { intensity: 80 }, // for useAnimatedProps (e.g., BlurView)
|
|
239
|
+
},
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
> **Legacy format**: The flat `contentStyle`/`backdropStyle` format is still supported but deprecated. It will be auto-converted with a one-time warning in development.
|
|
243
|
+
|
|
201
244
|
### Animation Specs
|
|
202
245
|
|
|
203
246
|
Control timing with spring configs:
|
|
@@ -230,19 +273,23 @@ options={{
|
|
|
230
273
|
|
|
231
274
|
### Gesture Options
|
|
232
275
|
|
|
233
|
-
| Option
|
|
234
|
-
|
|
|
235
|
-
| `gestureEnabled`
|
|
236
|
-
| `gestureDirection`
|
|
237
|
-
| `gestureActivationArea`
|
|
238
|
-
| `gestureResponseDistance`
|
|
239
|
-
| `gestureVelocityImpact`
|
|
240
|
-
| `gestureDrivesProgress`
|
|
241
|
-
| `snapVelocityImpact`
|
|
242
|
-
| `
|
|
243
|
-
| `
|
|
244
|
-
| `
|
|
245
|
-
| `
|
|
276
|
+
| Option | Description |
|
|
277
|
+
| ------------------------------- | ------------------------------------------------------------------------ |
|
|
278
|
+
| `gestureEnabled` | Enable swipe-to-dismiss (snap sheets: `false` blocks dismiss-to-0 only) |
|
|
279
|
+
| `gestureDirection` | Direction(s) for swipe gesture |
|
|
280
|
+
| `gestureActivationArea` | Where gesture can start |
|
|
281
|
+
| `gestureResponseDistance` | Pixel threshold for activation |
|
|
282
|
+
| `gestureVelocityImpact` | How much velocity affects dismissal (default: 0.3) |
|
|
283
|
+
| `gestureDrivesProgress` | Whether gesture controls animation progress (default: true) |
|
|
284
|
+
| `snapVelocityImpact` | How much velocity affects snap targeting (default: 0.1, lower = iOS-like)|
|
|
285
|
+
| `gestureReleaseVelocityScale` | Multiplier for post-release spring velocity (default: 1) |
|
|
286
|
+
| `gestureReleaseVelocityMax` | Cap on post-release spring velocity (default: 3.2) |
|
|
287
|
+
| `expandViaScrollView` | Allow expansion from ScrollView at boundary (default: true) |
|
|
288
|
+
| `gestureSnapLocked` | Lock gesture-based snap movement to current snap point |
|
|
289
|
+
| `backdropBehavior` | Touch handling for backdrop area |
|
|
290
|
+
| `backdropComponent` | Custom backdrop component, driven by interpolator `backdrop` slot |
|
|
291
|
+
| `surfaceComponent` | Custom surface component, driven by interpolator `surface` slot |
|
|
292
|
+
| `maskEnabled` | Pre-mount masked view wrapper for navigation bounds masking |
|
|
246
293
|
|
|
247
294
|
### Gesture Direction
|
|
248
295
|
|
|
@@ -290,6 +337,8 @@ Gesture rules with scrollables:
|
|
|
290
337
|
- **vertical-inverted** – only activates when scrolled to bottom
|
|
291
338
|
- **horizontal** – only activates at left/right scroll edges
|
|
292
339
|
|
|
340
|
+
`Transition.ScrollView` and `Transition.FlatList` also emit a settled signal (on momentum end, or drag end with no momentum). Grouped boundaries listen for that signal and re-measure source bounds while idle, which keeps list/detail shared transitions accurate after focus-change auto-scrolling.
|
|
341
|
+
|
|
293
342
|
---
|
|
294
343
|
|
|
295
344
|
## Snap Points
|
|
@@ -333,7 +382,7 @@ Create multi-stop sheets that snap to defined positions. Works with any gesture
|
|
|
333
382
|
| `initialSnapIndex` | Index of initial snap point (default: 0) |
|
|
334
383
|
| `gestureSnapLocked` | Locks gesture snapping to current point (programmatic `snapTo` still works) |
|
|
335
384
|
| `backdropBehavior` | Touch handling: `"block"`, `"passthrough"`, `"dismiss"`, `"collapse"`|
|
|
336
|
-
| `backdropComponent` | Custom backdrop component
|
|
385
|
+
| `backdropComponent` | Custom backdrop component, driven by interpolator `backdrop` slot |
|
|
337
386
|
|
|
338
387
|
#### backdropBehavior Values
|
|
339
388
|
|
|
@@ -346,39 +395,69 @@ Create multi-stop sheets that snap to defined positions. Works with any gesture
|
|
|
346
395
|
|
|
347
396
|
#### Custom Backdrop Component
|
|
348
397
|
|
|
349
|
-
Use `backdropComponent`
|
|
398
|
+
Use `backdropComponent` to provide a custom component for the backdrop layer between screens (e.g., a `BlurView`).
|
|
350
399
|
|
|
351
|
-
-
|
|
352
|
-
-
|
|
353
|
-
- `backdropBehavior` still controls
|
|
400
|
+
- The library wraps your component with `Animated.createAnimatedComponent` internally
|
|
401
|
+
- Animated styles and props are driven by the `backdrop` slot in your interpolator
|
|
402
|
+
- `backdropBehavior` still controls the wrapping `Pressable` for dismiss/collapse handling
|
|
354
403
|
|
|
355
404
|
```tsx
|
|
356
|
-
import {
|
|
357
|
-
import { Pressable } from "react-native";
|
|
358
|
-
import Animated, { interpolate, useAnimatedStyle } from "react-native-reanimated";
|
|
359
|
-
import { useScreenAnimation } from "react-native-screen-transitions";
|
|
360
|
-
|
|
361
|
-
function SheetBackdrop() {
|
|
362
|
-
const animation = useScreenAnimation();
|
|
363
|
-
|
|
364
|
-
const style = useAnimatedStyle(() => ({
|
|
365
|
-
opacity: interpolate(animation.value.current.progress, [0, 1], [0, 0.4]),
|
|
366
|
-
backgroundColor: "#000",
|
|
367
|
-
}));
|
|
368
|
-
|
|
369
|
-
return (
|
|
370
|
-
<Pressable style={{ flex: 1 }} onPress={() => router.back()}>
|
|
371
|
-
<Animated.View style={[{ flex: 1 }, style]} />
|
|
372
|
-
</Pressable>
|
|
373
|
-
);
|
|
374
|
-
}
|
|
405
|
+
import { BlurView } from "expo-blur";
|
|
375
406
|
|
|
376
407
|
<Stack.Screen
|
|
377
408
|
name="Sheet"
|
|
378
409
|
options={{
|
|
379
410
|
snapPoints: [0.5, 1],
|
|
380
411
|
backdropBehavior: "dismiss",
|
|
381
|
-
backdropComponent:
|
|
412
|
+
backdropComponent: BlurView,
|
|
413
|
+
screenStyleInterpolator: ({ progress }) => {
|
|
414
|
+
"worklet";
|
|
415
|
+
return {
|
|
416
|
+
backdrop: {
|
|
417
|
+
style: { opacity: interpolate(progress, [0, 1], [0, 1]) },
|
|
418
|
+
props: { intensity: interpolate(progress, [0, 1], [0, 80]) },
|
|
419
|
+
},
|
|
420
|
+
content: {
|
|
421
|
+
style: {
|
|
422
|
+
transform: [{ translateY: interpolate(progress, [0, 1], [800, 0]) }],
|
|
423
|
+
},
|
|
424
|
+
},
|
|
425
|
+
};
|
|
426
|
+
},
|
|
427
|
+
}}
|
|
428
|
+
/>
|
|
429
|
+
```
|
|
430
|
+
|
|
431
|
+
The `props` bucket is applied via `useAnimatedProps`, letting you animate component-specific properties like `BlurView`'s `intensity` or `SquircleView`'s `cornerRadius`.
|
|
432
|
+
|
|
433
|
+
#### Custom Surface Component
|
|
434
|
+
|
|
435
|
+
Use `surfaceComponent` to render a custom surface inside the animated content wrapper (e.g., a `SquircleView` for smooth rounded corners).
|
|
436
|
+
|
|
437
|
+
- `content` drives container-level transitions (position/scale/opacity)
|
|
438
|
+
- `surface` drives custom surface styles/props
|
|
439
|
+
- Animated props are driven by the `surface` slot in your interpolator
|
|
440
|
+
|
|
441
|
+
```tsx
|
|
442
|
+
import { SquircleView } from "react-native-figma-squircle";
|
|
443
|
+
|
|
444
|
+
<Stack.Screen
|
|
445
|
+
name="Card"
|
|
446
|
+
options={{
|
|
447
|
+
surfaceComponent: SquircleView,
|
|
448
|
+
screenStyleInterpolator: ({ progress }) => {
|
|
449
|
+
"worklet";
|
|
450
|
+
return {
|
|
451
|
+
content: {
|
|
452
|
+
style: {
|
|
453
|
+
transform: [{ scale: interpolate(progress, [0, 1], [0.8, 1]) }],
|
|
454
|
+
},
|
|
455
|
+
},
|
|
456
|
+
surface: {
|
|
457
|
+
props: { cornerRadius: 24, cornerSmoothing: 0.7 },
|
|
458
|
+
},
|
|
459
|
+
};
|
|
460
|
+
},
|
|
382
461
|
}}
|
|
383
462
|
/>
|
|
384
463
|
```
|
|
@@ -413,8 +492,10 @@ screenStyleInterpolator: ({ snapIndex }) => {
|
|
|
413
492
|
// snapIndex interpolates between snap point indices
|
|
414
493
|
// e.g., 0.5 means halfway between snap point 0 and 1
|
|
415
494
|
return {
|
|
416
|
-
|
|
417
|
-
|
|
495
|
+
content: {
|
|
496
|
+
style: {
|
|
497
|
+
opacity: interpolate(snapIndex, [0, 1], [0.5, 1]),
|
|
498
|
+
},
|
|
418
499
|
},
|
|
419
500
|
};
|
|
420
501
|
}
|
|
@@ -444,46 +525,153 @@ transitionSpec: {
|
|
|
444
525
|
|
|
445
526
|
## Shared Elements (Bounds API)
|
|
446
527
|
|
|
447
|
-
Animate elements between screens by tagging them.
|
|
528
|
+
Animate elements between screens by tagging them. There are two approaches: the `Transition.Boundary` namespace for declarative shared element transitions, and `sharedBoundTag` on `Transition.View`/`Transition.Pressable` for inline usage.
|
|
529
|
+
|
|
530
|
+
### Transition.Boundary
|
|
531
|
+
|
|
532
|
+
The recommended setup. `Transition.Boundary` is a namespace with prebuilt variants:
|
|
533
|
+
- `Transition.Boundary.Pressable` for source elements that trigger navigation
|
|
534
|
+
- `Transition.Boundary.View` for passive source/destination elements
|
|
535
|
+
|
|
536
|
+
```tsx
|
|
537
|
+
// Source screen — list item
|
|
538
|
+
<Transition.Boundary.Pressable
|
|
539
|
+
id="album-art"
|
|
540
|
+
group="albums" // Optional: list/collection grouping
|
|
541
|
+
onPress={() => router.push("/details")}
|
|
542
|
+
>
|
|
543
|
+
<Image source={album} style={{ width: 100, height: 100 }} />
|
|
544
|
+
</Transition.Boundary.Pressable>
|
|
545
|
+
|
|
546
|
+
// Destination screen
|
|
547
|
+
<Transition.Boundary.View id="album-art">
|
|
548
|
+
<Image source={album} style={{ width: 300, height: 300 }} />
|
|
549
|
+
</Transition.Boundary.View>
|
|
550
|
+
```
|
|
551
|
+
|
|
552
|
+
#### Boundary Props
|
|
553
|
+
|
|
554
|
+
| Prop | Description |
|
|
555
|
+
| ----------- | ------------------------------------------------------------------ |
|
|
556
|
+
| `id` | Unique identifier for matching across screens |
|
|
557
|
+
| `group` | Group name for list/collection scenarios (tag becomes `group:id`) |
|
|
558
|
+
| `enabled` | Whether this boundary participates in matching (default: true) |
|
|
559
|
+
| `method` | `"transform"` `"size"` `"content"` — how to animate |
|
|
560
|
+
| `anchor` | Alignment anchor point |
|
|
561
|
+
| `scaleMode` | `"match"` `"none"` `"uniform"` — aspect ratio handling |
|
|
562
|
+
| `target` | Target for size calculations (for example `"fullscreen"`) |
|
|
563
|
+
|
|
564
|
+
#### Groups
|
|
565
|
+
|
|
566
|
+
For list/collection scenarios where multiple items share the same transition:
|
|
567
|
+
|
|
568
|
+
```tsx
|
|
569
|
+
{items.map((item) => (
|
|
570
|
+
<Transition.Boundary.Pressable
|
|
571
|
+
key={item.id}
|
|
572
|
+
id={item.id}
|
|
573
|
+
group="photos"
|
|
574
|
+
onPress={() => router.push(`/photo/${item.id}`)}
|
|
575
|
+
>
|
|
576
|
+
<Image source={item.src} />
|
|
577
|
+
</Transition.Boundary.Pressable>
|
|
578
|
+
))}
|
|
579
|
+
```
|
|
580
|
+
|
|
581
|
+
Only the tapped item transitions. The library tracks the active member for each group, and transition-aware scrollables emit settled signals so grouped boundaries can re-measure after focus-change auto-scrolling.
|
|
582
|
+
|
|
583
|
+
### Custom Boundary Components
|
|
584
|
+
|
|
585
|
+
Use the boundary factory when you want a custom wrapped component (for example `Image`, `BlurView`, or design-system primitives):
|
|
586
|
+
|
|
587
|
+
```tsx
|
|
588
|
+
import { Image } from "react-native";
|
|
589
|
+
import Transition from "react-native-screen-transitions";
|
|
590
|
+
|
|
591
|
+
const BoundaryImage = Transition.createBoundaryComponent(Image);
|
|
592
|
+
|
|
593
|
+
<BoundaryImage id="cover-art" group="albums" source={cover} />
|
|
594
|
+
```
|
|
595
|
+
|
|
596
|
+
### Inline Shared Elements
|
|
448
597
|
|
|
449
|
-
|
|
598
|
+
For simpler legacy cases, use `sharedBoundTag` directly on `Transition.View` or `Transition.Pressable`:
|
|
450
599
|
|
|
451
600
|
```tsx
|
|
601
|
+
// Source
|
|
452
602
|
<Transition.Pressable
|
|
453
603
|
sharedBoundTag="avatar"
|
|
454
604
|
onPress={() => navigation.navigate("Profile")}
|
|
455
605
|
>
|
|
456
606
|
<Image source={avatar} style={{ width: 50, height: 50 }} />
|
|
457
607
|
</Transition.Pressable>
|
|
458
|
-
```
|
|
459
|
-
|
|
460
|
-
### 2. Tag the Destination
|
|
461
608
|
|
|
462
|
-
|
|
609
|
+
// Destination
|
|
463
610
|
<Transition.View sharedBoundTag="avatar">
|
|
464
611
|
<Image source={avatar} style={{ width: 200, height: 200 }} />
|
|
465
612
|
</Transition.View>
|
|
466
613
|
```
|
|
467
614
|
|
|
468
|
-
|
|
615
|
+
> `sharedBoundTag` on `Transition.Pressable` is planned for deprecation in the next major version. Prefer `Transition.Boundary.Pressable` and `Transition.Boundary.View`.
|
|
616
|
+
|
|
617
|
+
### Using Bounds in Interpolators
|
|
469
618
|
|
|
470
619
|
```tsx
|
|
471
620
|
screenStyleInterpolator: ({ bounds }) => {
|
|
472
621
|
"worklet";
|
|
473
622
|
return {
|
|
474
|
-
avatar: bounds({ id: "avatar", method: "transform" }),
|
|
623
|
+
"avatar": bounds({ id: "avatar", method: "transform" }),
|
|
475
624
|
};
|
|
476
625
|
};
|
|
477
626
|
```
|
|
478
627
|
|
|
628
|
+
### Navigation Bounds (Zoom Transitions)
|
|
629
|
+
|
|
630
|
+
For SwiftUI-like navigation zoom transitions where content expands from a source element with a masked reveal:
|
|
631
|
+
|
|
632
|
+
```tsx
|
|
633
|
+
<Stack.Screen
|
|
634
|
+
name="Detail"
|
|
635
|
+
options={{
|
|
636
|
+
maskEnabled: true, // Required for masked reveal
|
|
637
|
+
screenStyleInterpolator: ({ bounds, progress, focused }) => {
|
|
638
|
+
"worklet";
|
|
639
|
+
if (!focused) return {};
|
|
640
|
+
|
|
641
|
+
return bounds({
|
|
642
|
+
id: "album-art",
|
|
643
|
+
}).navigation.zoom();
|
|
644
|
+
},
|
|
645
|
+
transitionSpec: {
|
|
646
|
+
open: { stiffness: 1000, damping: 500, mass: 3, overshootClamping: true },
|
|
647
|
+
close: { stiffness: 1000, damping: 500, mass: 3, overshootClamping: true },
|
|
648
|
+
},
|
|
649
|
+
}}
|
|
650
|
+
/>
|
|
651
|
+
```
|
|
652
|
+
|
|
653
|
+
`bounds().navigation.zoom()` returns a complete interpolator result with content, mask, and container styles. Set `maskEnabled: true` to pre-mount the masked view wrapper so it's ready from the first frame.
|
|
654
|
+
|
|
655
|
+
`navigation.zoom()` does not accept options.
|
|
656
|
+
|
|
657
|
+
Configuration guidance:
|
|
658
|
+
- Preferred: define transition configuration on boundary components (`anchor`, `scaleMode`, `target`, `method`) via `Transition.Boundary.View` / `Transition.Boundary.Pressable`.
|
|
659
|
+
- Supported but secondary: pass options through `bounds({ ... })` when needed.
|
|
660
|
+
|
|
661
|
+
> **Note**: Navigation bounds masking requires `@react-native-masked-view/masked-view` to be installed.
|
|
662
|
+
|
|
479
663
|
### Bounds Options
|
|
480
664
|
|
|
665
|
+
`bounds({ ... })` options are supported. For shared boundary flows, prefer setting configuration on boundary components and keep `bounds({ id })` minimal.
|
|
666
|
+
|
|
481
667
|
| Option | Values | Description |
|
|
482
668
|
| ----------- | ---------------------------------- | ----------------------------- |
|
|
483
|
-
| `id` | string | The
|
|
669
|
+
| `id` | string | The boundary id to match |
|
|
484
670
|
| `method` | `"transform"` `"size"` `"content"` | How to animate |
|
|
485
671
|
| `space` | `"relative"` `"absolute"` | Coordinate space |
|
|
486
672
|
| `scaleMode` | `"match"` `"none"` `"uniform"` | Aspect ratio handling |
|
|
673
|
+
| `anchor` | string | Alignment anchor point |
|
|
674
|
+
| `target` | `"fullscreen"` etc. | Target for size calculations |
|
|
487
675
|
| `raw` | boolean | Return raw values |
|
|
488
676
|
|
|
489
677
|
---
|
|
@@ -524,13 +712,17 @@ const TabBar = ({ focusedIndex, progress }) => {
|
|
|
524
712
|
|
|
525
713
|
## Transition Components
|
|
526
714
|
|
|
527
|
-
| Component
|
|
528
|
-
|
|
|
529
|
-
| `Transition.
|
|
530
|
-
| `Transition.
|
|
531
|
-
| `Transition.
|
|
532
|
-
| `Transition.
|
|
533
|
-
| `Transition.
|
|
715
|
+
| Component | Description |
|
|
716
|
+
| ------------------------------------------- | ------------------------------------------------------------------------------ |
|
|
717
|
+
| `Transition.Boundary` | Namespace for shared-boundary helpers |
|
|
718
|
+
| `Transition.Boundary.View` | Passive boundary wrapper for shared elements |
|
|
719
|
+
| `Transition.Boundary.Pressable` | Pressable boundary wrapper with press-priority source measurement |
|
|
720
|
+
| `Transition.createBoundaryComponent` | Factory for building boundary wrappers around custom components |
|
|
721
|
+
| `Transition.View` | Animated view with `sharedBoundTag` or `styleId` |
|
|
722
|
+
| `Transition.Pressable` | Pressable wrapper. `sharedBoundTag` usage is legacy and planned for next-major deprecation |
|
|
723
|
+
| `Transition.ScrollView` | ScrollView with gesture coordination + scroll-settled signaling |
|
|
724
|
+
| `Transition.FlatList` | FlatList with gesture coordination + scroll-settled signaling |
|
|
725
|
+
| `Transition.MaskedView` | Deprecated legacy masking wrapper. Prefer `maskEnabled` on screen options |
|
|
534
726
|
|
|
535
727
|
---
|
|
536
728
|
|
|
@@ -669,7 +861,10 @@ screenStyleInterpolator: ({ progress }) => {
|
|
|
669
861
|
"worklet";
|
|
670
862
|
return {
|
|
671
863
|
"hero-image": {
|
|
672
|
-
|
|
864
|
+
style: {
|
|
865
|
+
opacity: interpolate(progress, [0, 1], [0, 1]),
|
|
866
|
+
transform: [{ scale: interpolate(progress, [0, 1], [0.8, 1]) }],
|
|
867
|
+
},
|
|
673
868
|
},
|
|
674
869
|
};
|
|
675
870
|
};
|
|
@@ -769,9 +964,9 @@ options={{
|
|
|
769
964
|
|
|
770
965
|
---
|
|
771
966
|
|
|
772
|
-
## Masked View Setup
|
|
967
|
+
## Masked View Setup (`maskEnabled` Recommended)
|
|
773
968
|
|
|
774
|
-
Required for `SharedIGImage
|
|
969
|
+
Required for `SharedIGImage`, `SharedAppleMusic` presets, and `bounds().navigation.zoom()` transitions. For new code, prefer `maskEnabled: true` on screen options.
|
|
775
970
|
|
|
776
971
|
> **Note**: Requires native code. Will not work in Expo Go.
|
|
777
972
|
|
|
@@ -786,72 +981,57 @@ npm install @react-native-masked-view/masked-view
|
|
|
786
981
|
cd ios && pod install
|
|
787
982
|
```
|
|
788
983
|
|
|
789
|
-
###
|
|
984
|
+
### Recommended Flow (`maskEnabled`)
|
|
790
985
|
|
|
791
|
-
**1. Source Screen** –
|
|
986
|
+
**1. Source Screen** – use a boundary pressable:
|
|
792
987
|
|
|
793
988
|
```tsx
|
|
794
989
|
// app/index.tsx
|
|
795
990
|
import { router } from "expo-router";
|
|
796
|
-
import { View } from "react-native";
|
|
797
991
|
import Transition from "react-native-screen-transitions";
|
|
798
992
|
|
|
799
993
|
export default function HomeScreen() {
|
|
800
994
|
return (
|
|
801
|
-
<
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
router.push({
|
|
812
|
-
pathname: "/details",
|
|
813
|
-
params: { sharedBoundTag: "album-art" },
|
|
814
|
-
});
|
|
815
|
-
}}
|
|
816
|
-
/>
|
|
817
|
-
</View>
|
|
995
|
+
<Transition.Boundary.Pressable
|
|
996
|
+
id="album-art"
|
|
997
|
+
style={{
|
|
998
|
+
width: 200,
|
|
999
|
+
height: 200,
|
|
1000
|
+
backgroundColor: "#1DB954",
|
|
1001
|
+
borderRadius: 12,
|
|
1002
|
+
}}
|
|
1003
|
+
onPress={() => router.push("/details")}
|
|
1004
|
+
/>
|
|
818
1005
|
);
|
|
819
1006
|
}
|
|
820
1007
|
```
|
|
821
1008
|
|
|
822
|
-
**2. Destination Screen** –
|
|
1009
|
+
**2. Destination Screen** – render the matching boundary:
|
|
823
1010
|
|
|
824
1011
|
```tsx
|
|
825
1012
|
// app/details.tsx
|
|
826
|
-
import { useLocalSearchParams } from "expo-router";
|
|
827
1013
|
import Transition from "react-native-screen-transitions";
|
|
828
1014
|
|
|
829
1015
|
export default function DetailsScreen() {
|
|
830
|
-
const { sharedBoundTag } = useLocalSearchParams<{ sharedBoundTag: string }>();
|
|
831
|
-
|
|
832
1016
|
return (
|
|
833
|
-
<Transition.
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
/>
|
|
844
|
-
{/* Additional screen content */}
|
|
845
|
-
</Transition.MaskedView>
|
|
1017
|
+
<Transition.Boundary.View
|
|
1018
|
+
id="album-art"
|
|
1019
|
+
style={{
|
|
1020
|
+
backgroundColor: "#1DB954",
|
|
1021
|
+
width: 400,
|
|
1022
|
+
height: 400,
|
|
1023
|
+
alignSelf: "center",
|
|
1024
|
+
borderRadius: 12,
|
|
1025
|
+
}}
|
|
1026
|
+
/>
|
|
846
1027
|
);
|
|
847
1028
|
}
|
|
848
1029
|
```
|
|
849
1030
|
|
|
850
|
-
**3. Layout** –
|
|
1031
|
+
**3. Layout** – enable `maskEnabled` and use `bounds().navigation.zoom()`:
|
|
851
1032
|
|
|
852
1033
|
```tsx
|
|
853
1034
|
// app/_layout.tsx
|
|
854
|
-
import Transition from "react-native-screen-transitions";
|
|
855
1035
|
import { Stack } from "./stack";
|
|
856
1036
|
|
|
857
1037
|
export default function RootLayout() {
|
|
@@ -860,23 +1040,36 @@ export default function RootLayout() {
|
|
|
860
1040
|
<Stack.Screen name="index" />
|
|
861
1041
|
<Stack.Screen
|
|
862
1042
|
name="details"
|
|
863
|
-
options={
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
1043
|
+
options={{
|
|
1044
|
+
maskEnabled: true,
|
|
1045
|
+
screenStyleInterpolator: ({ bounds, focused }) => {
|
|
1046
|
+
"worklet";
|
|
1047
|
+
if (!focused) return {};
|
|
1048
|
+
return bounds({ id: "album-art" }).navigation.zoom();
|
|
1049
|
+
},
|
|
1050
|
+
}}
|
|
868
1051
|
/>
|
|
869
1052
|
</Stack>
|
|
870
1053
|
);
|
|
871
1054
|
}
|
|
872
1055
|
```
|
|
873
1056
|
|
|
1057
|
+
### Legacy Fallback (Deprecated): `Transition.MaskedView`
|
|
1058
|
+
|
|
1059
|
+
`Transition.MaskedView` remains available for legacy/manual masking flows, but new implementations should use `maskEnabled`.
|
|
1060
|
+
|
|
1061
|
+
```tsx
|
|
1062
|
+
<Transition.MaskedView style={{ flex: 1 }}>
|
|
1063
|
+
<Transition.View sharedBoundTag="album-art" />
|
|
1064
|
+
</Transition.MaskedView>
|
|
1065
|
+
```
|
|
1066
|
+
|
|
874
1067
|
### How It Works
|
|
875
1068
|
|
|
876
|
-
1. `Transition.Pressable` measures
|
|
877
|
-
2. `Transition.View` on the destination registers
|
|
878
|
-
3. `
|
|
879
|
-
4. The preset interpolates position, size, and mask for a seamless expand/collapse effect
|
|
1069
|
+
1. `Transition.Boundary.Pressable` measures and stores source bounds (legacy fallback: `Transition.Pressable` with `sharedBoundTag`, planned for next-major deprecation).
|
|
1070
|
+
2. `Transition.Boundary.View` (or `Transition.View`) on the destination registers the matching target.
|
|
1071
|
+
3. `maskEnabled: true` pre-mounts the masked wrapper for zoom/reveal transitions (legacy fallback: `Transition.MaskedView`).
|
|
1072
|
+
4. The zoom preset interpolates position, size, and mask for a seamless expand/collapse effect.
|
|
880
1073
|
|
|
881
1074
|
---
|
|
882
1075
|
|