react-native-screen-transitions 3.5.2 → 3.6.0-alpha.1
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 +23 -1081
- package/lib/commonjs/shared/animation/snap-to.js +4 -6
- package/lib/commonjs/shared/animation/snap-to.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js +4 -2
- package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +22 -29
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js +43 -0
- package/lib/commonjs/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +3 -3
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js +28 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +14 -147
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js +1 -8
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js +45 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js +5 -15
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/{use-capture-destination-boundary.js → use-initial-destination-measurement.js} +26 -36
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js +31 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js +48 -38
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +29 -31
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/providers/boundary-owner.provider.js +15 -11
- package/lib/commonjs/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
- package/lib/commonjs/shared/components/create-transition-aware-component.js +12 -7
- package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/commonjs/shared/components/native-screen.js +2 -2
- package/lib/commonjs/shared/components/native-screen.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +1 -1
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/commonjs/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.js +18 -13
- package/lib/commonjs/shared/components/screen-container/helpers/find-collapse-target.js.map +1 -0
- package/lib/commonjs/shared/components/screen-container/hooks/use-backdrop-pointer-events.js +15 -2
- package/lib/commonjs/shared/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js +7 -7
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +12 -5
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/content.js +2 -2
- package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js +18 -11
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/surface-container.js +16 -5
- package/lib/commonjs/shared/components/screen-container/layers/surface-container.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +4 -12
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +2 -8
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js.map +1 -1
- package/lib/commonjs/shared/configs/presets.js +8 -8
- package/lib/commonjs/shared/configs/presets.js.map +1 -1
- package/lib/commonjs/shared/configs/specs.js +2 -2
- package/lib/commonjs/shared/configs/specs.js.map +1 -1
- package/lib/commonjs/shared/constants.js +40 -9
- package/lib/commonjs/shared/constants.js.map +1 -1
- package/lib/commonjs/shared/hooks/reanimated/use-shared-value-ref.js +3 -3
- package/lib/commonjs/shared/hooks/reanimated/use-shared-value-ref.js.map +1 -1
- package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js +1 -1
- package/lib/commonjs/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
- package/lib/commonjs/shared/hooks/use-stable-callback-value.js +3 -3
- package/lib/commonjs/shared/hooks/use-stable-callback-value.js.map +1 -1
- package/lib/commonjs/shared/index.js +1 -1
- package/lib/commonjs/shared/index.js.map +1 -1
- package/lib/commonjs/shared/providers/register-bounds.provider.js +12 -20
- package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +86 -8
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js +23 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +107 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/build-screen-transition-options.js +38 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js +7 -27
- package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js +79 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +95 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.js +29 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.js +96 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/types.js +6 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/types.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +60 -87
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/selected-interpolator-options.js +51 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/selected-interpolator-options.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +14 -9
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js +57 -18
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js +2 -5
- package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +2 -12
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js +64 -0
- package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js +32 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js +85 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js +27 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture.js +32 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-screen-gesture.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js +45 -0
- package/lib/commonjs/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/index.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/ownership/compute-claimed-directions.js +74 -0
- package/lib/commonjs/shared/providers/screen/gestures/ownership/compute-claimed-directions.js.map +1 -0
- package/lib/commonjs/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.js +20 -7
- package/lib/commonjs/shared/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js +108 -0
- package/lib/commonjs/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/build-pan-gesture.js +50 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/build-pan-gesture.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation-decision.js +210 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation-decision.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation-rules.js +314 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation-rules.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation.js +94 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-lifecycle.js +123 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-lifecycle.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-release.js +193 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-release.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-reset.js +52 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-reset.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/use-pan-behavior.js +53 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/use-pan-behavior.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/build-pinch-gesture.js +43 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/build-pinch-gesture.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-activation.js +55 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-activation.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-lifecycle.js +94 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-lifecycle.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-release.js +133 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-release.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-reset.js +45 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-reset.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/use-pinch-behavior.js +53 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/use-pinch-behavior.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/index.js +13 -0
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/index.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.js +44 -0
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +134 -0
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js +56 -0
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/ancestors.js +23 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/ancestors.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/directions.js +146 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/directions.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/physics.js +212 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/physics.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js +231 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/release.js +36 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/release.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/reset.js +65 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/reset.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/runtime.js +43 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/runtime.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/snap-points.js +184 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/snap-points.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/targets.js +122 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/targets.js.map +1 -0
- package/lib/commonjs/shared/providers/{gestures → screen/gestures}/types.js +2 -2
- package/lib/commonjs/shared/providers/screen/gestures/types.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/options/helpers.js +176 -0
- package/lib/commonjs/shared/providers/screen/options/helpers.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/options/index.js +26 -0
- package/lib/commonjs/shared/providers/screen/options/index.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/options/options.provider.js +37 -0
- package/lib/commonjs/shared/providers/screen/options/options.provider.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/options/types.js +6 -0
- package/lib/commonjs/shared/providers/screen/options/types.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/screen-composer.js +9 -6
- package/lib/commonjs/shared/providers/screen/screen-composer.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/constants.js +55 -5
- package/lib/commonjs/shared/providers/screen/styles/constants.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js +15 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/preserve-animated-props-only.js +26 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/preserve-animated-props-only.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +294 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js +116 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js +28 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js +125 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/types.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/strip-interpolator-options.js +22 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/strip-interpolator-options.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/visibility-gate.js +45 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/visibility-gate.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +69 -10
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +34 -8
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +19 -2
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-closing-route-map.js +1 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-closing-route-map.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-stack-derived.js +2 -2
- package/lib/commonjs/shared/providers/stack/helpers/use-stack-derived.js.map +1 -1
- package/lib/commonjs/shared/stores/animation.store.js +3 -7
- package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js +49 -0
- package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js +25 -0
- package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js +30 -0
- package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/helpers/keys.js +0 -17
- package/lib/commonjs/shared/stores/bounds/helpers/keys.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js +79 -0
- package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/helpers/matching.js +1 -10
- package/lib/commonjs/shared/stores/bounds/helpers/matching.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js +30 -0
- package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/index.js +16 -101
- package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/clear.js +0 -21
- package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/entries.js +44 -0
- package/lib/commonjs/shared/stores/bounds/internals/entries.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/internals/groups.js +78 -3
- package/lib/commonjs/shared/stores/bounds/internals/groups.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/links.js +120 -0
- package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +18 -43
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/state.js +1 -10
- package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/commonjs/shared/stores/gesture.store.js +31 -1
- package/lib/commonjs/shared/stores/gesture.store.js.map +1 -1
- package/lib/commonjs/shared/stores/scroll.store.js +22 -0
- package/lib/commonjs/shared/stores/scroll.store.js.map +1 -0
- package/lib/commonjs/shared/stores/system.store.js +3 -0
- package/lib/commonjs/shared/stores/system.store.js.map +1 -1
- package/lib/commonjs/shared/types/gesture.types.js +6 -6
- package/lib/commonjs/shared/types/gesture.types.js.map +1 -1
- package/lib/commonjs/shared/types/ownership.types.js +2 -2
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js +52 -36
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/emit.js +22 -0
- package/lib/commonjs/shared/utils/animation/emit.js.map +1 -0
- package/lib/commonjs/shared/utils/animation/resolve-snap-transition-spec.js +22 -0
- package/lib/commonjs/shared/utils/animation/resolve-snap-transition-spec.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js +131 -0
- package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js +5 -5
- package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +48 -4
- package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +3 -4
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js +4 -2
- package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/styles/styles.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/index.js +34 -59
- package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/helpers.js +19 -0
- package/lib/commonjs/shared/utils/bounds/navigation/helpers.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/{zoom → navigation}/math.js +2 -55
- package/lib/commonjs/shared/utils/bounds/navigation/math.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js +375 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js +20 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js +25 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/types.js +4 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/types.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/{zoom → navigation/zoom}/build.js +111 -147
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/{zoom → navigation/zoom}/config.js +2 -14
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/config.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js +71 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js +25 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/types.js +4 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/types.js.map +1 -0
- package/lib/commonjs/shared/utils/gesture-progress-mode.js +50 -0
- package/lib/commonjs/shared/utils/gesture-progress-mode.js.map +1 -0
- package/lib/commonjs/shared/utils/resolve-chain-target.js +29 -0
- package/lib/commonjs/shared/utils/resolve-chain-target.js.map +1 -0
- package/lib/commonjs/shared/utils/resolve-screen-transition-options.js +3 -10
- package/lib/commonjs/shared/utils/resolve-screen-transition-options.js.map +1 -1
- package/lib/module/shared/animation/snap-to.js +4 -6
- package/lib/module/shared/animation/snap-to.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/components/boundary-target.js +5 -3
- package/lib/module/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +23 -30
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js +38 -0
- package/lib/module/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +1 -1
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js +23 -0
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +11 -138
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js +0 -6
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js +39 -0
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +3 -13
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js +96 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js +26 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js +50 -40
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +29 -31
- package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js +15 -11
- package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
- package/lib/module/shared/components/create-transition-aware-component.js +12 -7
- package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/module/shared/components/native-screen.js +2 -2
- package/lib/module/shared/components/native-screen.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/{utils/gesture → components/screen-container/helpers}/find-collapse-target.js +17 -12
- package/lib/module/shared/components/screen-container/helpers/find-collapse-target.js.map +1 -0
- package/lib/module/shared/components/screen-container/hooks/use-backdrop-pointer-events.js +15 -2
- package/lib/module/shared/components/screen-container/hooks/use-backdrop-pointer-events.js.map +1 -1
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +7 -7
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/backdrop.js +12 -5
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/content.js +2 -2
- package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +18 -11
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/surface-container.js +16 -5
- package/lib/module/shared/components/screen-container/layers/surface-container.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +5 -13
- package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +2 -8
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js.map +1 -1
- package/lib/module/shared/configs/presets.js +8 -8
- package/lib/module/shared/configs/presets.js.map +1 -1
- package/lib/module/shared/configs/specs.js +2 -2
- package/lib/module/shared/configs/specs.js.map +1 -1
- package/lib/module/shared/constants.js +39 -8
- package/lib/module/shared/constants.js.map +1 -1
- package/lib/module/shared/hooks/reanimated/use-shared-value-ref.js +3 -3
- package/lib/module/shared/hooks/reanimated/use-shared-value-ref.js.map +1 -1
- package/lib/module/shared/hooks/reanimated/use-shared-value-state.js +1 -1
- package/lib/module/shared/hooks/reanimated/use-shared-value-state.js.map +1 -1
- package/lib/module/shared/hooks/use-stable-callback-value.js +3 -3
- package/lib/module/shared/hooks/use-stable-callback-value.js.map +1 -1
- package/lib/module/shared/index.js +1 -1
- package/lib/module/shared/index.js.map +1 -1
- package/lib/module/shared/providers/register-bounds.provider.js +9 -17
- package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/animation.provider.js +87 -9
- package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js +18 -0
- package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +101 -0
- package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/build-screen-transition-options.js +33 -0
- package/lib/module/shared/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/derivations.js +5 -25
- package/lib/module/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js +74 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +85 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.js +22 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.js +89 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/types.js +4 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/types.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +62 -89
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/selected-interpolator-options.js +46 -0
- package/lib/module/shared/providers/screen/animation/helpers/selected-interpolator-options.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +14 -9
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js +58 -18
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js +2 -5
- package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +2 -12
- package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/gestures.provider.js +57 -0
- package/lib/module/shared/providers/screen/gestures/gestures.provider.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js +27 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-builder-state.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js +78 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js +23 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture-config.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture.js +27 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-screen-gesture.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js +41 -0
- package/lib/module/shared/providers/screen/gestures/hooks/use-stable-runtime-config.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/index.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/ownership/compute-claimed-directions.js +70 -0
- package/lib/module/shared/providers/screen/gestures/ownership/compute-claimed-directions.js.map +1 -0
- package/lib/module/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.js +19 -7
- package/lib/module/shared/providers/screen/gestures/ownership/resolve-ownership.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js +104 -0
- package/lib/module/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/build-pan-gesture.js +45 -0
- package/lib/module/shared/providers/screen/gestures/pan/build-pan-gesture.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-activation-decision.js +205 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-activation-decision.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-activation-rules.js +304 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-activation-rules.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-activation.js +89 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-activation.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-lifecycle.js +116 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-lifecycle.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-release.js +185 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-release.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-reset.js +47 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-reset.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/use-pan-behavior.js +48 -0
- package/lib/module/shared/providers/screen/gestures/pan/use-pan-behavior.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pinch/build-pinch-gesture.js +38 -0
- package/lib/module/shared/providers/screen/gestures/pinch/build-pinch-gesture.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-activation.js +50 -0
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-activation.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-lifecycle.js +87 -0
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-lifecycle.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-release.js +126 -0
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-release.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-reset.js +40 -0
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-reset.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/pinch/use-pinch-behavior.js +48 -0
- package/lib/module/shared/providers/screen/gestures/pinch/use-pinch-behavior.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/index.js +4 -0
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/index.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.js +39 -0
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +128 -0
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js +52 -0
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/ancestors.js +19 -0
- package/lib/module/shared/providers/screen/gestures/shared/ancestors.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/directions.js +135 -0
- package/lib/module/shared/providers/screen/gestures/shared/directions.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/physics.js +199 -0
- package/lib/module/shared/providers/screen/gestures/shared/physics.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/policy.js +218 -0
- package/lib/module/shared/providers/screen/gestures/shared/policy.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/release.js +30 -0
- package/lib/module/shared/providers/screen/gestures/shared/release.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/reset.js +58 -0
- package/lib/module/shared/providers/screen/gestures/shared/reset.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/runtime.js +37 -0
- package/lib/module/shared/providers/screen/gestures/shared/runtime.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/snap-points.js +174 -0
- package/lib/module/shared/providers/screen/gestures/shared/snap-points.js.map +1 -0
- package/lib/module/shared/providers/screen/gestures/shared/targets.js +116 -0
- package/lib/module/shared/providers/screen/gestures/shared/targets.js.map +1 -0
- package/lib/module/shared/providers/{gestures → screen/gestures}/types.js +1 -1
- package/lib/module/shared/providers/screen/gestures/types.js.map +1 -0
- package/lib/module/shared/providers/screen/options/helpers.js +169 -0
- package/lib/module/shared/providers/screen/options/helpers.js.map +1 -0
- package/lib/module/shared/providers/screen/options/index.js +5 -0
- package/lib/module/shared/providers/screen/options/index.js.map +1 -0
- package/lib/module/shared/providers/screen/options/options.provider.js +30 -0
- package/lib/module/shared/providers/screen/options/options.provider.js.map +1 -0
- package/lib/module/shared/providers/screen/options/types.js +4 -0
- package/lib/module/shared/providers/screen/options/types.js.map +1 -0
- package/lib/module/shared/providers/screen/screen-composer.js +9 -6
- package/lib/module/shared/providers/screen/screen-composer.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/constants.js +54 -4
- package/lib/module/shared/providers/screen/styles/constants.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js +15 -0
- package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/preserve-animated-props-only.js +21 -0
- package/lib/module/shared/providers/screen/styles/helpers/preserve-animated-props-only.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +288 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js +111 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js +22 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js +119 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/types.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/strip-interpolator-options.js +17 -0
- package/lib/module/shared/providers/screen/styles/helpers/strip-interpolator-options.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/visibility-gate.js +39 -0
- package/lib/module/shared/providers/screen/styles/helpers/visibility-gate.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +70 -10
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +35 -9
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +20 -3
- package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -1
- package/lib/module/shared/providers/stack/helpers/use-closing-route-map.js +1 -1
- package/lib/module/shared/providers/stack/helpers/use-closing-route-map.js.map +1 -1
- package/lib/module/shared/providers/stack/helpers/use-stack-derived.js +2 -2
- package/lib/module/shared/providers/stack/helpers/use-stack-derived.js.map +1 -1
- package/lib/module/shared/stores/animation.store.js +3 -7
- package/lib/module/shared/stores/animation.store.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/entries.helpers.js +42 -0
- package/lib/module/shared/stores/bounds/helpers/entries.helpers.js.map +1 -0
- package/lib/module/shared/stores/bounds/helpers/find-latest.js +19 -0
- package/lib/module/shared/stores/bounds/helpers/find-latest.js.map +1 -0
- package/lib/module/shared/stores/bounds/helpers/groups.helpers.js +23 -0
- package/lib/module/shared/stores/bounds/helpers/groups.helpers.js.map +1 -0
- package/lib/module/shared/stores/bounds/helpers/keys.js +0 -16
- package/lib/module/shared/stores/bounds/helpers/keys.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/link.helpers.js +69 -0
- package/lib/module/shared/stores/bounds/helpers/link.helpers.js.map +1 -0
- package/lib/module/shared/stores/bounds/helpers/matching.js +1 -9
- package/lib/module/shared/stores/bounds/helpers/matching.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js +24 -0
- package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js.map +1 -0
- package/lib/module/shared/stores/bounds/index.js +10 -95
- package/lib/module/shared/stores/bounds/index.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/clear.js +2 -21
- package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/entries.js +39 -0
- package/lib/module/shared/stores/bounds/internals/entries.js.map +1 -0
- package/lib/module/shared/stores/bounds/internals/groups.js +76 -4
- package/lib/module/shared/stores/bounds/internals/groups.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/links.js +112 -0
- package/lib/module/shared/stores/bounds/internals/links.js.map +1 -0
- package/lib/module/shared/stores/bounds/internals/resolver.js +18 -43
- package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/state.js +0 -8
- package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/module/shared/stores/gesture.store.js +31 -1
- package/lib/module/shared/stores/gesture.store.js.map +1 -1
- package/lib/module/shared/stores/scroll.store.js +18 -0
- package/lib/module/shared/stores/scroll.store.js.map +1 -0
- package/lib/module/shared/stores/system.store.js +3 -0
- package/lib/module/shared/stores/system.store.js.map +1 -1
- package/lib/module/shared/types/animation.types.js +25 -3
- package/lib/module/shared/types/animation.types.js.map +1 -1
- package/lib/module/shared/types/gesture.types.js +6 -5
- package/lib/module/shared/types/gesture.types.js.map +1 -1
- package/lib/module/shared/types/ownership.types.js +2 -2
- package/lib/module/shared/utils/animation/animate-to-progress.js +52 -36
- package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/module/shared/utils/animation/emit.js +17 -0
- package/lib/module/shared/utils/animation/emit.js.map +1 -0
- package/lib/module/shared/utils/animation/resolve-snap-transition-spec.js +17 -0
- package/lib/module/shared/utils/animation/resolve-snap-transition-spec.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js +126 -0
- package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/create-interpolators.js +5 -5
- package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +48 -4
- package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +3 -3
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/styles/composers.js +4 -2
- package/lib/module/shared/utils/bounds/helpers/styles/composers.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/styles/styles.js.map +1 -1
- package/lib/module/shared/utils/bounds/index.js +34 -59
- package/lib/module/shared/utils/bounds/index.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/helpers.js +13 -0
- package/lib/module/shared/utils/bounds/navigation/helpers.js.map +1 -0
- package/lib/module/shared/utils/bounds/{zoom → navigation}/math.js +9 -51
- package/lib/module/shared/utils/bounds/navigation/math.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/build.js +371 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/build.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/config.js +16 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/config.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js +20 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js.map +1 -0
- package/lib/module/shared/utils/bounds/{zoom → navigation/reveal}/types.js +1 -1
- package/lib/module/shared/utils/bounds/navigation/reveal/types.js.map +1 -0
- package/lib/module/shared/utils/bounds/{zoom → navigation/zoom}/build.js +93 -129
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -0
- package/lib/module/shared/utils/bounds/{zoom → navigation/zoom}/config.js +1 -11
- package/lib/module/shared/utils/bounds/navigation/zoom/config.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js +63 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/math.js +20 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/math.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/types.js +4 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/types.js.map +1 -0
- package/lib/module/shared/utils/gesture-progress-mode.js +42 -0
- package/lib/module/shared/utils/gesture-progress-mode.js.map +1 -0
- package/lib/module/shared/utils/resolve-chain-target.js +25 -0
- package/lib/module/shared/utils/resolve-chain-target.js.map +1 -0
- package/lib/module/shared/utils/resolve-screen-transition-options.js +1 -7
- package/lib/module/shared/utils/resolve-screen-transition-options.js.map +1 -1
- package/lib/typescript/shared/animation/snap-to.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/shared/{stores/bounds → components/create-boundary-component}/helpers/apply-measured-bounds-writes.d.ts +0 -4
- package/lib/typescript/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts +22 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +6 -64
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts +0 -2
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.d.ts +6 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts +0 -3
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts +11 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts +7 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts +2 -5
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/providers/boundary-owner.provider.d.ts +5 -4
- package/lib/typescript/shared/components/create-boundary-component/providers/boundary-owner.provider.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts +0 -6
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/helpers/find-collapse-target.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-container/hooks/use-backdrop-pointer-events.d.ts +2 -1
- package/lib/typescript/shared/components/screen-container/hooks/use-backdrop-pointer-events.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/surface-container.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition-intent.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts +17 -6
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +4 -4
- package/lib/typescript/shared/index.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 +4 -1
- package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.d.ts +6 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/build-screen-transition-options.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/build-screen-transition-options.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts +3 -7
- package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts +6 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/types.d.ts +35 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/types.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +5 -4
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/selected-interpolator-options.d.ts +9 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/selected-interpolator-options.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts +7 -4
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/types.d.ts +17 -1
- package/lib/typescript/shared/providers/screen/animation/types.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts +11 -3
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts +1 -6
- package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/gestures.provider.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/gestures/gestures.provider.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-builder-state.d.ts +21 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-builder-state.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.d.ts +17 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture-config.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture-config.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture.d.ts +17 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-screen-gesture.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-stable-runtime-config.d.ts +6 -0
- package/lib/typescript/shared/providers/screen/gestures/hooks/use-stable-runtime-config.d.ts.map +1 -0
- package/lib/typescript/shared/providers/{gestures → screen/gestures}/index.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/gestures/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/ownership/compute-claimed-directions.d.ts +19 -0
- package/lib/typescript/shared/providers/screen/gestures/ownership/compute-claimed-directions.d.ts.map +1 -0
- package/lib/typescript/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.d.ts +10 -5
- package/lib/typescript/shared/providers/screen/gestures/ownership/resolve-ownership.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.d.ts +14 -0
- package/lib/typescript/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/build-pan-gesture.d.ts +10 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/build-pan-gesture.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation-decision.d.ts +29 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation-decision.d.ts.map +1 -0
- package/lib/typescript/shared/providers/{gestures/helpers/gesture-activation.d.ts → screen/gestures/pan/pan-activation-rules.d.ts} +19 -20
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation-rules.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation.d.ts +17 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-lifecycle.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-lifecycle.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-release.d.ts +6 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-release.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-reset.d.ts +17 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-reset.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/use-pan-behavior.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/use-pan-behavior.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/build-pinch-gesture.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/build-pinch-gesture.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-activation.d.ts +14 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-activation.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-lifecycle.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-lifecycle.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-release.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-release.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-reset.d.ts +11 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-reset.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/use-pinch-behavior.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/use-pinch-behavior.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/index.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.d.ts.map +1 -0
- package/lib/typescript/shared/{hooks/gestures/use-scroll-registry.d.ts → providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.d.ts} +6 -17
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.d.ts +11 -0
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/ancestors.d.ts +11 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/ancestors.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/directions.d.ts +18 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/directions.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/physics.d.ts +64 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/physics.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts +49 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/release.d.ts +13 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/release.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/reset.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/reset.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/runtime.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/runtime.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/snap-points.d.ts +37 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/snap-points.d.ts.map +1 -0
- package/lib/typescript/shared/providers/{gestures/helpers/gesture-targets.d.ts → screen/gestures/shared/targets.d.ts} +2 -2
- package/lib/typescript/shared/providers/screen/gestures/shared/targets.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/gestures/types.d.ts +155 -0
- package/lib/typescript/shared/providers/screen/gestures/types.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/options/helpers.d.ts +6 -0
- package/lib/typescript/shared/providers/screen/options/helpers.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/options/index.d.ts +4 -0
- package/lib/typescript/shared/providers/screen/options/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/options/options.provider.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/options/options.provider.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/options/types.d.ts +30 -0
- package/lib/typescript/shared/providers/screen/options/types.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/screen-composer.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/constants.d.ts +11 -21
- package/lib/typescript/shared/providers/screen/styles/constants.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/preserve-animated-props-only.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/preserve-animated-props-only.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts +23 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.d.ts +14 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.d.ts +14 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/types.d.ts +8 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/types.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/strip-interpolator-options.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/strip-interpolator-options.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/visibility-gate.d.ts +17 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/visibility-gate.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts +25 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.d.ts.map +1 -1
- package/lib/typescript/shared/stores/animation.store.d.ts +1 -3
- package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts +5 -0
- package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts +3 -0
- package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts +10 -0
- package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts +0 -2
- package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts +14 -0
- package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts +1 -2
- package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts +5 -0
- package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/index.d.ts +8 -32
- package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/clear.d.ts +2 -4
- package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/entries.d.ts +6 -0
- package/lib/typescript/shared/stores/bounds/internals/entries.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/internals/groups.d.ts +14 -2
- package/lib/typescript/shared/stores/bounds/internals/groups.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/links.d.ts +12 -0
- package/lib/typescript/shared/stores/bounds/internals/links.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts +0 -1
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/types.d.ts +10 -14
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
- package/lib/typescript/shared/stores/gesture.store.d.ts +20 -3
- package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/scroll.store.d.ts +12 -0
- package/lib/typescript/shared/stores/scroll.store.d.ts.map +1 -0
- package/lib/typescript/shared/stores/system.store.d.ts +4 -0
- package/lib/typescript/shared/stores/system.store.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +75 -34
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/bounds.types.d.ts +21 -2
- package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/gesture.types.d.ts +71 -5
- package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/index.d.ts +3 -3
- package/lib/typescript/shared/types/index.d.ts.map +1 -1
- package/lib/typescript/shared/types/ownership.types.d.ts +2 -2
- package/lib/typescript/shared/types/screen.types.d.ts +48 -6
- package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts +2 -1
- package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/emit.d.ts +7 -0
- package/lib/typescript/shared/utils/animation/emit.d.ts.map +1 -0
- package/lib/typescript/shared/utils/animation/resolve-snap-transition-spec.d.ts +4 -0
- package/lib/typescript/shared/utils/animation/resolve-snap-transition-spec.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts +2 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts +19 -0
- package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts +2 -2
- package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts +2 -3
- package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +3 -10
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/styles/composers.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/styles/styles.d.ts +1 -4
- package/lib/typescript/shared/utils/bounds/helpers/styles/styles.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/helpers.d.ts +4 -0
- package/lib/typescript/shared/utils/bounds/navigation/helpers.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/math.d.ts +31 -0
- package/lib/typescript/shared/utils/bounds/navigation/math.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts +3 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts +9 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts +8 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/types.d.ts +11 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/types.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/{zoom → navigation/zoom}/config.d.ts +1 -4
- package/lib/typescript/shared/utils/bounds/navigation/zoom/config.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts +30 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts +8 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/{zoom → navigation/zoom}/types.d.ts +2 -2
- package/lib/typescript/shared/utils/bounds/navigation/zoom/types.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/types/options.d.ts +10 -1
- package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
- package/lib/typescript/shared/utils/gesture-progress-mode.d.ts +14 -0
- package/lib/typescript/shared/utils/gesture-progress-mode.d.ts.map +1 -0
- package/lib/typescript/shared/utils/resolve-chain-target.d.ts +11 -0
- package/lib/typescript/shared/utils/resolve-chain-target.d.ts.map +1 -0
- package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts +0 -2
- package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts.map +1 -1
- package/package.json +5 -2
- package/src/shared/animation/snap-to.ts +8 -6
- package/src/shared/components/create-boundary-component/components/boundary-target.tsx +10 -3
- package/src/shared/components/create-boundary-component/create-boundary-component.tsx +30 -35
- package/src/shared/{stores/bounds → components/create-boundary-component}/helpers/apply-measured-bounds-writes.ts +10 -30
- package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +1 -1
- package/src/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.ts +48 -0
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +11 -182
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement.ts +0 -18
- package/src/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.ts +58 -0
- package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +3 -28
- package/src/shared/components/create-boundary-component/hooks/{use-capture-destination-boundary.ts → use-initial-destination-measurement.ts} +29 -57
- package/src/shared/components/create-boundary-component/hooks/use-initial-source-measurement.ts +27 -0
- package/src/shared/components/create-boundary-component/hooks/use-measurer.ts +66 -80
- package/src/shared/components/create-boundary-component/hooks/use-refresh-boundary.ts +55 -47
- package/src/shared/components/create-boundary-component/providers/boundary-owner.provider.tsx +41 -29
- package/src/shared/components/create-boundary-component/types.ts +0 -8
- package/src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts +0 -3
- package/src/shared/components/create-transition-aware-component.tsx +24 -10
- package/src/shared/components/native-screen.tsx +2 -2
- package/src/shared/components/overlay/variations/overlay-host.tsx +1 -1
- package/src/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.ts +19 -8
- package/src/shared/components/screen-container/hooks/use-backdrop-pointer-events.ts +21 -1
- package/src/shared/components/screen-container/hooks/use-content-layout.ts +8 -8
- package/src/shared/components/screen-container/layers/backdrop.tsx +15 -9
- package/src/shared/components/screen-container/layers/content.tsx +2 -2
- package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +30 -16
- package/src/shared/components/screen-container/layers/surface-container.tsx +35 -15
- package/src/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.ts +5 -23
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition-intent.ts +2 -5
- package/src/shared/components/screen-lifecycle/hooks/use-open-transition-intent.ts +1 -1
- package/src/shared/configs/presets.ts +8 -8
- package/src/shared/configs/specs.ts +2 -2
- package/src/shared/constants.ts +52 -8
- package/src/shared/hooks/reanimated/use-shared-value-ref.ts +3 -3
- package/src/shared/hooks/reanimated/use-shared-value-state.ts +1 -1
- package/src/shared/hooks/use-stable-callback-value.ts +3 -3
- package/src/shared/index.ts +8 -4
- package/src/shared/providers/register-bounds.provider.tsx +15 -17
- package/src/shared/providers/screen/animation/animation.provider.tsx +169 -13
- package/src/shared/providers/screen/animation/helpers/accessors/use-build-bounds-accessor.tsx +13 -0
- package/src/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.ts +158 -0
- package/src/shared/providers/screen/animation/helpers/build-screen-transition-options.ts +63 -0
- package/src/shared/providers/screen/animation/helpers/derivations.ts +10 -23
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.ts +164 -0
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/index.ts +160 -0
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/settle.ts +41 -0
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/snap-points.ts +188 -0
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/types.ts +40 -0
- package/src/shared/providers/screen/animation/helpers/pipeline.ts +96 -99
- package/src/shared/providers/screen/animation/helpers/selected-interpolator-options.ts +99 -0
- package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +20 -17
- package/src/shared/providers/screen/animation/types.ts +31 -1
- package/src/shared/providers/screen/animation/use-screen-animation.tsx +96 -22
- package/src/shared/providers/screen/descriptors/descriptors.provider.tsx +1 -7
- package/src/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +0 -19
- package/src/shared/providers/screen/gestures/gestures.provider.tsx +85 -0
- package/src/shared/providers/screen/gestures/hooks/use-gesture-builder-state.ts +31 -0
- package/src/shared/providers/screen/gestures/hooks/use-gesture-sensitivity.ts +132 -0
- package/src/shared/providers/screen/gestures/hooks/use-screen-gesture-config.ts +24 -0
- package/src/shared/providers/screen/gestures/hooks/use-screen-gesture.ts +33 -0
- package/src/shared/providers/screen/gestures/hooks/use-stable-runtime-config.ts +45 -0
- package/src/shared/providers/{gestures → screen/gestures}/index.tsx +3 -1
- package/src/shared/providers/screen/gestures/ownership/compute-claimed-directions.ts +101 -0
- package/src/shared/{utils/gesture → providers/screen/gestures/ownership}/resolve-ownership.ts +27 -9
- package/src/shared/providers/screen/gestures/ownership/use-walk-up-and-register-shadowing-claims.ts +129 -0
- package/src/shared/providers/screen/gestures/pan/build-pan-gesture.ts +65 -0
- package/src/shared/providers/screen/gestures/pan/pan-activation-decision.ts +458 -0
- package/src/shared/providers/{gestures/helpers/gesture-activation.ts → screen/gestures/pan/pan-activation-rules.ts} +219 -173
- package/src/shared/providers/screen/gestures/pan/pan-activation.ts +132 -0
- package/src/shared/providers/screen/gestures/pan/pan-lifecycle.ts +129 -0
- package/src/shared/providers/screen/gestures/pan/pan-release.ts +246 -0
- package/src/shared/providers/screen/gestures/pan/pan-reset.ts +92 -0
- package/src/shared/providers/screen/gestures/pan/use-pan-behavior.ts +89 -0
- package/src/shared/providers/screen/gestures/pinch/build-pinch-gesture.ts +48 -0
- package/src/shared/providers/screen/gestures/pinch/pinch-activation.ts +72 -0
- package/src/shared/providers/screen/gestures/pinch/pinch-lifecycle.ts +104 -0
- package/src/shared/providers/screen/gestures/pinch/pinch-release.ts +183 -0
- package/src/shared/providers/screen/gestures/pinch/pinch-reset.ts +65 -0
- package/src/shared/providers/screen/gestures/pinch/use-pinch-behavior.ts +82 -0
- package/src/shared/providers/screen/gestures/scroll-coordination/index.ts +1 -0
- package/src/shared/providers/screen/gestures/scroll-coordination/update-scroll-gesture-state.ts +44 -0
- package/src/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.ts +180 -0
- package/src/shared/providers/screen/gestures/scroll-coordination/walk-up-scroll-gesture-coordination.ts +88 -0
- package/src/shared/providers/screen/gestures/shared/ancestors.ts +27 -0
- package/src/shared/providers/screen/gestures/shared/directions.ts +205 -0
- package/src/shared/providers/screen/gestures/shared/physics.ts +323 -0
- package/src/shared/providers/screen/gestures/shared/policy.ts +346 -0
- package/src/shared/providers/screen/gestures/shared/release.ts +43 -0
- package/src/shared/providers/screen/gestures/shared/reset.ts +74 -0
- package/src/shared/providers/screen/gestures/shared/runtime.ts +76 -0
- package/src/shared/providers/screen/gestures/shared/snap-points.ts +250 -0
- package/src/shared/providers/screen/gestures/shared/targets.ts +202 -0
- package/src/shared/providers/screen/gestures/types.ts +216 -0
- package/src/shared/providers/screen/options/helpers.ts +382 -0
- package/src/shared/providers/screen/options/index.ts +6 -0
- package/src/shared/providers/screen/options/options.provider.tsx +43 -0
- package/src/shared/providers/screen/options/types.ts +36 -0
- package/src/shared/providers/screen/screen-composer.tsx +11 -8
- package/src/shared/providers/screen/styles/components/maybe-floating-container.tsx +0 -2
- package/src/shared/providers/screen/styles/constants.ts +50 -4
- package/src/shared/providers/screen/styles/helpers/normalize-slots.ts +13 -0
- package/src/shared/providers/screen/styles/helpers/preserve-animated-props-only.ts +22 -0
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/index.ts +414 -0
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.ts +155 -0
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/reset-values.ts +23 -0
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/slot-state.ts +146 -0
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/types.ts +8 -0
- package/src/shared/providers/screen/styles/helpers/strip-interpolator-options.ts +17 -0
- package/src/shared/providers/screen/styles/helpers/visibility-gate.ts +57 -0
- package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +95 -18
- package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +37 -13
- package/src/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.tsx +19 -1
- package/src/shared/providers/stack/helpers/use-closing-route-map.ts +1 -1
- package/src/shared/providers/stack/helpers/use-stack-derived.ts +2 -2
- package/src/shared/stores/animation.store.ts +3 -9
- package/src/shared/stores/bounds/helpers/entries.helpers.ts +55 -0
- package/src/shared/stores/bounds/helpers/find-latest.ts +22 -0
- package/src/shared/stores/bounds/helpers/groups.helpers.ts +27 -0
- package/src/shared/stores/bounds/helpers/keys.ts +0 -22
- package/src/shared/stores/bounds/helpers/link.helpers.ts +131 -0
- package/src/shared/stores/bounds/helpers/matching.ts +2 -16
- package/src/shared/stores/bounds/helpers/tag-state.helpers.ts +24 -0
- package/src/shared/stores/bounds/index.ts +14 -194
- package/src/shared/stores/bounds/internals/clear.ts +3 -42
- package/src/shared/stores/bounds/internals/entries.ts +42 -0
- package/src/shared/stores/bounds/internals/groups.ts +99 -3
- package/src/shared/stores/bounds/internals/links.ts +171 -0
- package/src/shared/stores/bounds/internals/resolver.ts +40 -77
- package/src/shared/stores/bounds/internals/state.ts +0 -8
- package/src/shared/stores/bounds/types.ts +10 -14
- package/src/shared/stores/gesture.store.ts +54 -6
- package/src/shared/stores/scroll.store.ts +25 -0
- package/src/shared/stores/system.store.ts +8 -0
- package/src/shared/types/animation.types.ts +102 -35
- package/src/shared/types/bounds.types.ts +32 -2
- package/src/shared/types/gesture.types.ts +91 -5
- package/src/shared/types/index.ts +9 -0
- package/src/shared/types/ownership.types.ts +2 -2
- package/src/shared/types/screen.types.ts +56 -7
- package/src/shared/utils/animation/animate-to-progress.ts +69 -42
- package/src/shared/utils/animation/emit.ts +18 -0
- package/src/shared/utils/animation/resolve-snap-transition-spec.ts +23 -0
- package/src/shared/utils/bounds/helpers/create-bound-tag.ts +1 -1
- package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +160 -0
- package/src/shared/utils/bounds/helpers/create-interpolators.ts +8 -8
- package/src/shared/utils/bounds/helpers/create-link-accessor.ts +66 -11
- package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +8 -6
- package/src/shared/utils/bounds/helpers/styles/composers.ts +5 -2
- package/src/shared/utils/bounds/helpers/styles/styles.ts +4 -9
- package/src/shared/utils/bounds/index.ts +28 -53
- package/src/shared/utils/bounds/navigation/helpers.ts +14 -0
- package/src/shared/utils/bounds/{zoom → navigation}/math.ts +10 -72
- package/src/shared/utils/bounds/navigation/reveal/build.ts +590 -0
- package/src/shared/utils/bounds/navigation/reveal/config.ts +15 -0
- package/src/shared/utils/bounds/navigation/reveal/math.ts +25 -0
- package/src/shared/utils/bounds/navigation/reveal/types.ts +18 -0
- package/src/shared/utils/bounds/{zoom → navigation/zoom}/build.ts +144 -191
- package/src/shared/utils/bounds/{zoom → navigation/zoom}/config.ts +1 -15
- package/src/shared/utils/bounds/navigation/zoom/helpers.ts +116 -0
- package/src/shared/utils/bounds/navigation/zoom/math.ts +25 -0
- package/src/shared/utils/bounds/{zoom → navigation/zoom}/types.ts +2 -2
- package/src/shared/utils/bounds/types/options.ts +8 -1
- package/src/shared/utils/gesture-progress-mode.ts +67 -0
- package/src/shared/utils/resolve-chain-target.ts +33 -0
- package/src/shared/utils/resolve-screen-transition-options.ts +1 -16
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +0 -40
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +0 -1
- package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js +0 -49
- package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js.map +0 -1
- package/lib/commonjs/shared/hooks/gestures/types.js.map +0 -1
- package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js +0 -30
- package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js.map +0 -1
- package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js +0 -219
- package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js.map +0 -1
- package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js +0 -43
- package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/gestures.provider.js +0 -94
- package/lib/commonjs/shared/providers/gestures/gestures.provider.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js +0 -447
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.js +0 -322
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-claims.js +0 -27
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-claims.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-directions.js +0 -56
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-directions.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-physics.js +0 -144
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-physics.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-reset.js +0 -78
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-reset.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-snap-points.js +0 -44
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-snap-points.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-targets.js +0 -113
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-targets.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/helpers/register-direction-claims.js +0 -74
- package/lib/commonjs/shared/providers/gestures/helpers/register-direction-claims.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/index.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/types.js.map +0 -1
- package/lib/commonjs/shared/providers/gestures/use-build-gestures.js +0 -111
- package/lib/commonjs/shared/providers/gestures/use-build-gestures.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js +0 -110
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js +0 -33
- package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js +0 -28
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles.js +0 -137
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles.js.map +0 -1
- package/lib/commonjs/shared/providers/scroll-settle.provider.js +0 -25
- package/lib/commonjs/shared/providers/scroll-settle.provider.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +0 -49
- package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/internals/registry.js +0 -352
- package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +0 -1
- package/lib/commonjs/shared/typecheck/public-api.typecheck.js +0 -174
- package/lib/commonjs/shared/typecheck/public-api.typecheck.js.map +0 -1
- package/lib/commonjs/shared/utils/animation/animate-many.js +0 -32
- package/lib/commonjs/shared/utils/animation/animate-many.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/zoom/config.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/zoom/math.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/zoom/types.js +0 -4
- package/lib/commonjs/shared/utils/bounds/zoom/types.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/compute-claimed-directions.js +0 -81
- package/lib/commonjs/shared/utils/gesture/compute-claimed-directions.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/find-collapse-target.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/resolve-ownership.js.map +0 -1
- package/lib/commonjs/shared/utils/gesture/validate-snap-points.js +0 -56
- package/lib/commonjs/shared/utils/gesture/validate-snap-points.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js +0 -106
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +0 -35
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +0 -1
- package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js +0 -45
- package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js.map +0 -1
- package/lib/module/shared/hooks/gestures/types.js.map +0 -1
- package/lib/module/shared/hooks/gestures/use-screen-gesture.js +0 -25
- package/lib/module/shared/hooks/gestures/use-screen-gesture.js.map +0 -1
- package/lib/module/shared/hooks/gestures/use-scroll-registry.js +0 -214
- package/lib/module/shared/hooks/gestures/use-scroll-registry.js.map +0 -1
- package/lib/module/shared/hooks/reanimated/use-animated-debounce.js +0 -39
- package/lib/module/shared/hooks/reanimated/use-animated-debounce.js.map +0 -1
- package/lib/module/shared/providers/gestures/gestures.provider.js +0 -87
- package/lib/module/shared/providers/gestures/gestures.provider.js.map +0 -1
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js +0 -441
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-activation.js +0 -312
- package/lib/module/shared/providers/gestures/helpers/gesture-activation.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-claims.js +0 -23
- package/lib/module/shared/providers/gestures/helpers/gesture-claims.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-directions.js +0 -47
- package/lib/module/shared/providers/gestures/helpers/gesture-directions.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-physics.js +0 -134
- package/lib/module/shared/providers/gestures/helpers/gesture-physics.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-reset.js +0 -73
- package/lib/module/shared/providers/gestures/helpers/gesture-reset.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-snap-points.js +0 -38
- package/lib/module/shared/providers/gestures/helpers/gesture-snap-points.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-targets.js +0 -107
- package/lib/module/shared/providers/gestures/helpers/gesture-targets.js.map +0 -1
- package/lib/module/shared/providers/gestures/helpers/register-direction-claims.js +0 -70
- package/lib/module/shared/providers/gestures/helpers/register-direction-claims.js.map +0 -1
- package/lib/module/shared/providers/gestures/index.js.map +0 -1
- package/lib/module/shared/providers/gestures/types.js.map +0 -1
- package/lib/module/shared/providers/gestures/use-build-gestures.js +0 -106
- package/lib/module/shared/providers/gestures/use-build-gestures.js.map +0 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js +0 -104
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +0 -1
- package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js +0 -29
- package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +0 -1
- package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js +0 -24
- package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.js.map +0 -1
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js +0 -132
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js.map +0 -1
- package/lib/module/shared/providers/scroll-settle.provider.js +0 -19
- package/lib/module/shared/providers/scroll-settle.provider.js.map +0 -1
- package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +0 -44
- package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +0 -1
- package/lib/module/shared/stores/bounds/internals/registry.js +0 -339
- package/lib/module/shared/stores/bounds/internals/registry.js.map +0 -1
- package/lib/module/shared/typecheck/public-api.typecheck.js +0 -174
- package/lib/module/shared/typecheck/public-api.typecheck.js.map +0 -1
- package/lib/module/shared/utils/animation/animate-many.js +0 -27
- package/lib/module/shared/utils/animation/animate-many.js.map +0 -1
- package/lib/module/shared/utils/bounds/zoom/build.js.map +0 -1
- package/lib/module/shared/utils/bounds/zoom/config.js.map +0 -1
- package/lib/module/shared/utils/bounds/zoom/math.js.map +0 -1
- package/lib/module/shared/utils/bounds/zoom/types.js.map +0 -1
- package/lib/module/shared/utils/gesture/compute-claimed-directions.js +0 -77
- package/lib/module/shared/utils/gesture/compute-claimed-directions.js.map +0 -1
- package/lib/module/shared/utils/gesture/find-collapse-target.js.map +0 -1
- package/lib/module/shared/utils/gesture/resolve-ownership.js.map +0 -1
- package/lib/module/shared/utils/gesture/validate-snap-points.js +0 -50
- package/lib/module/shared/utils/gesture/validate-snap-points.js.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts +0 -13
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts +0 -10
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts +0 -10
- package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/gestures/types.d.ts +0 -4
- package/lib/typescript/shared/hooks/gestures/types.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts +0 -17
- package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/gestures/use-scroll-registry.d.ts.map +0 -1
- package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts +0 -13
- package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/gestures.provider.d.ts +0 -19
- package/lib/typescript/shared/providers/gestures/gestures.provider.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts +0 -71
- package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-activation.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-claims.d.ts +0 -15
- package/lib/typescript/shared/providers/gestures/helpers/gesture-claims.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-directions.d.ts +0 -13
- package/lib/typescript/shared/providers/gestures/helpers/gesture-directions.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-physics.d.ts +0 -42
- package/lib/typescript/shared/providers/gestures/helpers/gesture-physics.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-reset.d.ts +0 -18
- package/lib/typescript/shared/providers/gestures/helpers/gesture-reset.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-snap-points.d.ts +0 -18
- package/lib/typescript/shared/providers/gestures/helpers/gesture-snap-points.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-targets.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/helpers/register-direction-claims.d.ts +0 -9
- package/lib/typescript/shared/providers/gestures/helpers/register-direction-claims.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/index.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/types.d.ts +0 -36
- package/lib/typescript/shared/providers/gestures/types.d.ts.map +0 -1
- package/lib/typescript/shared/providers/gestures/use-build-gestures.d.ts +0 -28
- package/lib/typescript/shared/providers/gestures/use-build-gestures.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts +0 -33
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts +0 -9
- package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.d.ts +0 -7
- package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts +0 -17
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts.map +0 -1
- package/lib/typescript/shared/providers/scroll-settle.provider.d.ts +0 -12
- package/lib/typescript/shared/providers/scroll-settle.provider.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/internals/registry.d.ts +0 -17
- package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +0 -1
- package/lib/typescript/shared/utils/animation/animate-many.d.ts +0 -13
- package/lib/typescript/shared/utils/animation/animate-many.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/zoom/config.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/zoom/math.d.ts +0 -61
- package/lib/typescript/shared/utils/bounds/zoom/math.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/zoom/types.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/compute-claimed-directions.d.ts +0 -23
- package/lib/typescript/shared/utils/gesture/compute-claimed-directions.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/find-collapse-target.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/resolve-ownership.d.ts.map +0 -1
- package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts +0 -20
- package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts.map +0 -1
- package/src/shared/components/create-boundary-component/hooks/use-capture-source-boundary.ts +0 -40
- package/src/shared/hooks/gestures/resolve-screen-gesture-target.ts +0 -66
- package/src/shared/hooks/gestures/types.ts +0 -5
- package/src/shared/hooks/gestures/use-screen-gesture.ts +0 -26
- package/src/shared/hooks/gestures/use-scroll-registry.ts +0 -265
- package/src/shared/hooks/reanimated/use-animated-debounce.ts +0 -56
- package/src/shared/providers/gestures/gestures.provider.tsx +0 -127
- package/src/shared/providers/gestures/handlers/use-handlers.ts +0 -598
- package/src/shared/providers/gestures/helpers/gesture-claims.ts +0 -24
- package/src/shared/providers/gestures/helpers/gesture-directions.ts +0 -97
- package/src/shared/providers/gestures/helpers/gesture-physics.ts +0 -214
- package/src/shared/providers/gestures/helpers/gesture-reset.ts +0 -112
- package/src/shared/providers/gestures/helpers/gesture-snap-points.ts +0 -74
- package/src/shared/providers/gestures/helpers/gesture-targets.ts +0 -175
- package/src/shared/providers/gestures/helpers/register-direction-claims.ts +0 -84
- package/src/shared/providers/gestures/types.ts +0 -45
- package/src/shared/providers/gestures/use-build-gestures.ts +0 -164
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state.ts +0 -169
- package/src/shared/providers/screen/animation/helpers/resolve-screen-animation-target.ts +0 -42
- package/src/shared/providers/screen/descriptors/helpers/get-ancestor-navigator-keys.ts +0 -29
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles.ts +0 -190
- package/src/shared/providers/scroll-settle.provider.tsx +0 -24
- package/src/shared/stores/bounds/internals/registry.ts +0 -473
- package/src/shared/typecheck/public-api.typecheck.ts +0 -222
- package/src/shared/utils/animation/animate-many.ts +0 -40
- package/src/shared/utils/gesture/compute-claimed-directions.ts +0 -93
- package/src/shared/utils/gesture/validate-snap-points.ts +0 -74
- /package/lib/commonjs/shared/providers/{gestures → screen/gestures}/index.js +0 -0
- /package/lib/commonjs/shared/{hooks/gestures → providers/screen/styles/helpers/resolve-slot-styles}/types.js +0 -0
- /package/lib/module/shared/providers/{gestures → screen/gestures}/index.js +0 -0
- /package/lib/module/shared/{hooks/gestures → providers/screen/styles/helpers/resolve-slot-styles}/types.js +0 -0
- /package/lib/typescript/shared/{utils/gesture → components/screen-container/helpers}/find-collapse-target.d.ts +0 -0
- /package/lib/typescript/shared/utils/bounds/{zoom → navigation/zoom}/build.d.ts +0 -0
package/README.md
CHANGED
|
@@ -1,78 +1,30 @@
|
|
|
1
1
|
# react-native-screen-transitions
|
|
2
2
|
|
|
3
|
-
Customizable screen transitions for React Native. Build gesture-driven, shared element, and fully custom animations with a simple API.
|
|
3
|
+
Customizable screen transitions for React Native. Build gesture-driven, shared element, sheet, and fully custom animations with a simple API.
|
|
4
4
|
|
|
5
|
-
| iOS
|
|
6
|
-
|
|
|
5
|
+
| iOS | Android |
|
|
6
|
+
| --- | ------- |
|
|
7
7
|
| <video src="https://github.com/user-attachments/assets/c0d17b8f-7268-421c-9051-e242f8ddca76" width="300" height="600" controls></video> | <video src="https://github.com/user-attachments/assets/3f8d5fb1-96d2-4fe3-860d-62f6fb5a687e" width="300" controls></video> |
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
11
|
+
- Full animation control for screen enter, exit, and gesture-driven states.
|
|
12
|
+
- Shared element and fullscreen navigation zoom transitions through the Bounds API.
|
|
13
|
+
- Snap-point sheets with gesture-aware `ScrollView` and `FlatList` coordination.
|
|
14
|
+
- Transition slots for content, backdrop, surface, and custom tagged elements.
|
|
15
|
+
- Built-in presets for common modal, card, and shared-transition patterns.
|
|
16
|
+
- Blank stack, native stack, and Expo Router integration.
|
|
17
|
+
- Written in TypeScript.
|
|
17
18
|
|
|
18
|
-
##
|
|
19
|
+
## Getting Started
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
Use the notes below as the source of truth when migrating examples or generating docs.
|
|
22
|
-
|
|
23
|
-
### Added / Expanded
|
|
24
|
-
|
|
25
|
-
- **Auto snap sizing** with `snapPoints: ["auto"]` and `current.layouts.content`
|
|
26
|
-
- **Scoped screen state access** through `previous`, `current`, `next`, `active`, and `inactive`, with `current.layouts` and `current.snapIndex`
|
|
27
|
-
- **Compound bounds components** via `Transition.Boundary.View`, `Transition.Boundary.Trigger`, and `Transition.Boundary.Target`
|
|
28
|
-
- **`Transition.createBoundaryComponent`** for building custom boundary wrappers, including `alreadyAnimated` support
|
|
29
|
-
- **Navigation-style bounds zoom** through `bounds({ id }).navigation.zoom()`
|
|
30
|
-
- **`navigationMaskEnabled`** for library-managed masked navigation transitions
|
|
31
|
-
- **Ancestor targeting** in `useScreenGesture()` and `useScreenAnimation()`
|
|
32
|
-
- **Gesture release tuning** with `gestureReleaseVelocityScale` and `gestureReleaseVelocityMax`
|
|
33
|
-
- **`Transition.Specs.FlingSpec`** for underdamped fling-style release motion
|
|
34
|
-
- **Surface slot support** through `surfaceComponent` and the interpolator `surface` slot
|
|
35
|
-
- **Animated `props` support across all slots** via `{ style, props }` slot returns
|
|
36
|
-
- **Optional first-screen animation** with `experimental_animateOnInitialMount`
|
|
37
|
-
- **`logicallySettled`** for choreography that should finish before a spring is fully at rest
|
|
38
|
-
|
|
39
|
-
### Deprecated / Replaced
|
|
40
|
-
|
|
41
|
-
- **`sharedBoundTag` on transition-aware components is deprecated for new work.** Prefer `Transition.Boundary.*` for new shared transition flows.
|
|
42
|
-
- **`Transition.MaskedView` is deprecated for new work.** Prefer `Transition.Boundary.*` with `bounds({ id }).navigation.zoom()` and `navigationMaskEnabled` for library-managed shared navigation transitions.
|
|
43
|
-
- **`createComponentStackNavigator` is deprecated.** Prefer blank stack for embedded and independent flows.
|
|
44
|
-
- **`expandViaScrollView` was renamed to `sheetScrollGestureBehavior`.**
|
|
45
|
-
- **Flat interpolator keys are deprecated.** Use `content`, `backdrop`, and `surface` instead of `contentStyle`, `backdropStyle`, and `overlayStyle`.
|
|
46
|
-
- **Legacy interpolator accessors are deprecated.** Use `current.layouts` and `current.snapIndex` instead of top-level `layouts` and `snapIndex`.
|
|
47
|
-
- **If you saw older alpha docs using `backgroundComponent` / `background`, use `surfaceComponent` / `surface`.**
|
|
48
|
-
|
|
49
|
-
### Removed
|
|
50
|
-
|
|
51
|
-
- Deprecated screen overlay mode and legacy overlay animation props were removed.
|
|
52
|
-
|
|
53
|
-
## When to Use This Library
|
|
54
|
-
|
|
55
|
-
| Use Case | This Library | Alternative |
|
|
56
|
-
|----------|--------------|-------------|
|
|
57
|
-
| Custom transitions (slide, zoom, fade variations) | Yes | `@react-navigation/stack` works too |
|
|
58
|
-
| Shared element transitions | **Yes** | Limited options elsewhere |
|
|
59
|
-
| Multi-stop sheets (bottom, top, side) with snap points | **Yes** | Dedicated sheet libraries |
|
|
60
|
-
| Gesture-driven animations (drag to dismiss, elastic) | **Yes** | Requires custom implementation |
|
|
61
|
-
| Instagram/Apple Music/Twitter-style transitions | **Yes** | Custom implementation |
|
|
62
|
-
| Simple push/pop with platform defaults | Overkill | `@react-navigation/native-stack` |
|
|
63
|
-
| Maximum raw performance on low-end devices | Not ideal | `@react-navigation/native-stack` |
|
|
64
|
-
|
|
65
|
-
**Choose this library when** you need custom animations, shared elements, or gesture-driven transitions that go beyond platform defaults.
|
|
66
|
-
|
|
67
|
-
**Choose native-stack when** you want platform-native transitions with zero configuration and maximum performance on low-end Android devices.
|
|
68
|
-
|
|
69
|
-
## Installation
|
|
21
|
+
Install the package:
|
|
70
22
|
|
|
71
23
|
```bash
|
|
72
24
|
npm install react-native-screen-transitions
|
|
73
25
|
```
|
|
74
26
|
|
|
75
|
-
|
|
27
|
+
Install peer dependencies:
|
|
76
28
|
|
|
77
29
|
```bash
|
|
78
30
|
npm install react-native-reanimated react-native-gesture-handler \
|
|
@@ -81,1033 +33,23 @@ npm install react-native-reanimated react-native-gesture-handler \
|
|
|
81
33
|
react-native-safe-area-context
|
|
82
34
|
```
|
|
83
35
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
## Quick Start
|
|
87
|
-
|
|
88
|
-
### 1. Create a Stack
|
|
89
|
-
|
|
90
|
-
```tsx
|
|
91
|
-
import { createBlankStackNavigator } from "react-native-screen-transitions/blank-stack";
|
|
92
|
-
import Transition from "react-native-screen-transitions";
|
|
93
|
-
|
|
94
|
-
const Stack = createBlankStackNavigator();
|
|
95
|
-
|
|
96
|
-
function App() {
|
|
97
|
-
return (
|
|
98
|
-
<Stack.Navigator>
|
|
99
|
-
<Stack.Screen name="Home" component={HomeScreen} />
|
|
100
|
-
<Stack.Screen
|
|
101
|
-
name="Detail"
|
|
102
|
-
component={DetailScreen}
|
|
103
|
-
options={{
|
|
104
|
-
...Transition.Presets.SlideFromBottom(),
|
|
105
|
-
}}
|
|
106
|
-
/>
|
|
107
|
-
</Stack.Navigator>
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
### 2. With Expo Router
|
|
113
|
-
|
|
114
|
-
```tsx
|
|
115
|
-
import { withLayoutContext } from "expo-router";
|
|
116
|
-
import {
|
|
117
|
-
createBlankStackNavigator,
|
|
118
|
-
type BlankStackNavigationOptions,
|
|
119
|
-
} from "react-native-screen-transitions/blank-stack";
|
|
120
|
-
|
|
121
|
-
const { Navigator } = createBlankStackNavigator();
|
|
122
|
-
|
|
123
|
-
export const Stack = withLayoutContext<
|
|
124
|
-
BlankStackNavigationOptions,
|
|
125
|
-
typeof Navigator
|
|
126
|
-
>(Navigator);
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
### 3. Static Config
|
|
130
|
-
|
|
131
|
-
Blank stack-specific navigator props follow React Navigation's custom navigator pattern.
|
|
132
|
-
|
|
133
|
-
For the dynamic API, pass them to `<Stack.Navigator>`:
|
|
134
|
-
|
|
135
|
-
```tsx
|
|
136
|
-
const Stack = createBlankStackNavigator();
|
|
137
|
-
|
|
138
|
-
function App() {
|
|
139
|
-
return (
|
|
140
|
-
<Stack.Navigator independent enableNativeScreens={false}>
|
|
141
|
-
<Stack.Screen name="Home" component={HomeScreen} />
|
|
142
|
-
<Stack.Screen name="Detail" component={DetailScreen} />
|
|
143
|
-
</Stack.Navigator>
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
For the static API, keep them in the same config object:
|
|
149
|
-
|
|
150
|
-
```tsx
|
|
151
|
-
import { createBlankStackNavigator } from "react-native-screen-transitions/blank-stack";
|
|
152
|
-
|
|
153
|
-
const Stack = createBlankStackNavigator({
|
|
154
|
-
initialRouteName: "Home",
|
|
155
|
-
screens: {
|
|
156
|
-
Home: HomeScreen,
|
|
157
|
-
Detail: DetailScreen,
|
|
158
|
-
},
|
|
159
|
-
independent: true,
|
|
160
|
-
enableNativeScreens: false,
|
|
161
|
-
});
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
---
|
|
165
|
-
|
|
166
|
-
## Presets
|
|
167
|
-
|
|
168
|
-
Use built-in presets for common transitions:
|
|
169
|
-
|
|
170
|
-
```tsx
|
|
171
|
-
<Stack.Screen
|
|
172
|
-
name="Detail"
|
|
173
|
-
options={{
|
|
174
|
-
...Transition.Presets.SlideFromBottom(),
|
|
175
|
-
}}
|
|
176
|
-
/>
|
|
177
|
-
```
|
|
178
|
-
|
|
179
|
-
| Preset | Description |
|
|
180
|
-
| -------------------------------------- | --------------------------------------- |
|
|
181
|
-
| `SlideFromTop()` | Slides in from top |
|
|
182
|
-
| `SlideFromBottom()` | Slides in from bottom (modal-style) |
|
|
183
|
-
| `ZoomIn()` | Scales in with fade |
|
|
184
|
-
| `DraggableCard()` | Multi-directional drag with scaling |
|
|
185
|
-
| `ElasticCard()` | Elastic drag with overlay |
|
|
186
|
-
| `SharedIGImage({ sharedBoundTag })` | Legacy Instagram-style shared image preset |
|
|
187
|
-
| `SharedAppleMusic({ sharedBoundTag })` | Legacy Apple Music-style shared element preset |
|
|
188
|
-
| `SharedXImage({ sharedBoundTag })` | Legacy X (Twitter)-style image transition preset |
|
|
189
|
-
|
|
190
|
-
---
|
|
191
|
-
|
|
192
|
-
## Custom Animations
|
|
193
|
-
|
|
194
|
-
### The Basics
|
|
195
|
-
|
|
196
|
-
Every screen has a `progress` value that goes from 0 → 1 → 2:
|
|
197
|
-
|
|
198
|
-
```
|
|
199
|
-
0 ─────────── 1 ─────────── 2
|
|
200
|
-
entering visible exiting
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
When navigating from A to B:
|
|
204
|
-
- **Screen B**: progress goes `0 → 1` (entering)
|
|
205
|
-
- **Screen A**: progress goes `1 → 2` (exiting)
|
|
206
|
-
|
|
207
|
-
### Simple Fade
|
|
208
|
-
|
|
209
|
-
```tsx
|
|
210
|
-
options={{
|
|
211
|
-
screenStyleInterpolator: ({ progress }) => {
|
|
212
|
-
"worklet";
|
|
213
|
-
return {
|
|
214
|
-
content: {
|
|
215
|
-
style: {
|
|
216
|
-
opacity: interpolate(progress, [0, 1, 2], [0, 1, 0]),
|
|
217
|
-
},
|
|
218
|
-
},
|
|
219
|
-
};
|
|
220
|
-
},
|
|
221
|
-
}}
|
|
222
|
-
```
|
|
223
|
-
|
|
224
|
-
### Slide from Right
|
|
225
|
-
|
|
226
|
-
```tsx
|
|
227
|
-
options={{
|
|
228
|
-
screenStyleInterpolator: ({ progress, current: { layouts: { screen } } }) => {
|
|
229
|
-
"worklet";
|
|
230
|
-
return {
|
|
231
|
-
content: {
|
|
232
|
-
style: {
|
|
233
|
-
transform: [{
|
|
234
|
-
translateX: interpolate(
|
|
235
|
-
progress,
|
|
236
|
-
[0, 1, 2],
|
|
237
|
-
[screen.width, 0, -screen.width * 0.3]
|
|
238
|
-
),
|
|
239
|
-
}],
|
|
240
|
-
},
|
|
241
|
-
},
|
|
242
|
-
};
|
|
243
|
-
},
|
|
244
|
-
}}
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
### Slide from Bottom
|
|
248
|
-
|
|
249
|
-
```tsx
|
|
250
|
-
options={{
|
|
251
|
-
screenStyleInterpolator: ({ progress, current: { layouts: { screen } } }) => {
|
|
252
|
-
"worklet";
|
|
253
|
-
return {
|
|
254
|
-
content: {
|
|
255
|
-
style: {
|
|
256
|
-
transform: [{
|
|
257
|
-
translateY: interpolate(progress, [0, 1], [screen.height, 0]),
|
|
258
|
-
}],
|
|
259
|
-
},
|
|
260
|
-
},
|
|
261
|
-
};
|
|
262
|
-
},
|
|
263
|
-
}}
|
|
264
|
-
```
|
|
265
|
-
|
|
266
|
-
### Return Styles
|
|
267
|
-
|
|
268
|
-
Your interpolator can return:
|
|
269
|
-
|
|
270
|
-
```tsx
|
|
271
|
-
return {
|
|
272
|
-
content: { style: { ... }, props: { ... } }, // Main screen slot
|
|
273
|
-
backdrop: { style: { ... }, props: { ... } }, // Backdrop / blur / dimming
|
|
274
|
-
surface: { style: { ... }, props: { ... } }, // Custom surface layer
|
|
275
|
-
["my-id"]: { style: { ... }, props: { ... } }, // Specific element via styleId
|
|
276
|
-
};
|
|
277
|
-
```
|
|
278
|
-
|
|
279
|
-
Every slot supports animated `style` and animated `props`.
|
|
280
|
-
Use the shorthand style-only form when you only need styles, or the explicit
|
|
281
|
-
`{ style, props }` form when the wrapped component exposes animatable props.
|
|
282
|
-
|
|
283
|
-
Return `null`, `undefined`, or `{}` when you want an interpolator frame to apply no transition styles:
|
|
284
|
-
|
|
285
|
-
```tsx
|
|
286
|
-
screenStyleInterpolator: ({ bounds }) => {
|
|
287
|
-
"worklet";
|
|
288
|
-
|
|
289
|
-
const measuredEntry = bounds.getMeasured("hero");
|
|
290
|
-
if (!measuredEntry) return null;
|
|
291
|
-
|
|
292
|
-
return {
|
|
293
|
-
content: {
|
|
294
|
-
style: { opacity: 1 },
|
|
295
|
-
},
|
|
296
|
-
};
|
|
297
|
-
};
|
|
298
|
-
```
|
|
299
|
-
|
|
300
|
-
`bounds.getSnapshot()` remains available as a deprecated alias for `bounds.getMeasured()`
|
|
301
|
-
and will be removed in the next major version.
|
|
302
|
-
|
|
303
|
-
### Animation Specs
|
|
304
|
-
|
|
305
|
-
Control timing with spring configs:
|
|
306
|
-
|
|
307
|
-
```tsx
|
|
308
|
-
options={{
|
|
309
|
-
screenStyleInterpolator: myInterpolator,
|
|
310
|
-
transitionSpec: {
|
|
311
|
-
open: { stiffness: 1000, damping: 500, mass: 3 }, // Screen enters
|
|
312
|
-
close: { stiffness: 1000, damping: 500, mass: 3 }, // Screen exits
|
|
313
|
-
expand: { stiffness: 300, damping: 30 }, // Snap point increases
|
|
314
|
-
collapse: { stiffness: 300, damping: 30 }, // Snap point decreases
|
|
315
|
-
},
|
|
316
|
-
}}
|
|
317
|
-
```
|
|
318
|
-
|
|
319
|
-
Built-in starting points are available on `Transition.Specs`:
|
|
320
|
-
|
|
321
|
-
```tsx
|
|
322
|
-
transitionSpec: {
|
|
323
|
-
open: Transition.Specs.DefaultSpec,
|
|
324
|
-
close: Transition.Specs.FlingSpec,
|
|
325
|
-
expand: Transition.Specs.DefaultSnapSpec,
|
|
326
|
-
collapse: Transition.Specs.DefaultSnapSpec,
|
|
327
|
-
}
|
|
328
|
-
```
|
|
329
|
-
|
|
330
|
-
---
|
|
331
|
-
|
|
332
|
-
## Gestures
|
|
333
|
-
|
|
334
|
-
Enable swipe-to-dismiss:
|
|
335
|
-
|
|
336
|
-
```tsx
|
|
337
|
-
options={{
|
|
338
|
-
gestureEnabled: true,
|
|
339
|
-
gestureDirection: "vertical",
|
|
340
|
-
...Transition.Presets.SlideFromBottom(),
|
|
341
|
-
}}
|
|
342
|
-
```
|
|
343
|
-
|
|
344
|
-
### Gesture Options
|
|
345
|
-
|
|
346
|
-
| Option | Description |
|
|
347
|
-
| ------------------------- | ------------------------------------------------------------------------ |
|
|
348
|
-
| `gestureEnabled` | Enable swipe-to-dismiss (snap sheets: `false` blocks dismiss-to-0 only) |
|
|
349
|
-
| `gestureDirection` | Direction(s) for swipe gesture |
|
|
350
|
-
| `gestureActivationArea` | Where gesture can start |
|
|
351
|
-
| `gestureResponseDistance` | Pixel threshold for activation |
|
|
352
|
-
| `gestureVelocityImpact` | How much velocity affects dismissal (default: 0.3) |
|
|
353
|
-
| `gestureDrivesProgress` | Whether gesture controls animation progress (default: true) |
|
|
354
|
-
| `snapVelocityImpact` | How much velocity affects snap targeting (default: 0.1, lower = iOS-like)|
|
|
355
|
-
| `gestureReleaseVelocityScale` | Multiplier for release velocity used by post-release spring animations |
|
|
356
|
-
| `gestureReleaseVelocityMax` | Max absolute normalized release velocity used by spring animations |
|
|
357
|
-
| `sheetScrollGestureBehavior` | Nested scroll handoff mode: `"expand-and-collapse"` or `"collapse-only"` |
|
|
358
|
-
| `gestureSnapLocked` | Lock gesture-based snap movement to current snap point |
|
|
359
|
-
| `backdropBehavior` | Touch handling for backdrop area |
|
|
360
|
-
| `backdropComponent` | Custom backdrop component (replaces default backdrop + press behavior) |
|
|
361
|
-
|
|
362
|
-
### Gesture Direction
|
|
363
|
-
|
|
364
|
-
```tsx
|
|
365
|
-
gestureDirection: "horizontal" // swipe left to dismiss
|
|
366
|
-
gestureDirection: "horizontal-inverted" // swipe right to dismiss
|
|
367
|
-
gestureDirection: "vertical" // swipe down to dismiss
|
|
368
|
-
gestureDirection: "vertical-inverted" // swipe up to dismiss
|
|
369
|
-
gestureDirection: "bidirectional" // any direction
|
|
370
|
-
|
|
371
|
-
// Or combine multiple:
|
|
372
|
-
gestureDirection: ["horizontal", "vertical"]
|
|
373
|
-
```
|
|
374
|
-
|
|
375
|
-
### Gesture Activation Area
|
|
376
|
-
|
|
377
|
-
```tsx
|
|
378
|
-
// Simple - same for all edges
|
|
379
|
-
gestureActivationArea: "edge" // only from screen edges
|
|
380
|
-
gestureActivationArea: "screen" // anywhere on screen
|
|
381
|
-
|
|
382
|
-
// Per-side configuration
|
|
383
|
-
gestureActivationArea: {
|
|
384
|
-
left: "edge",
|
|
385
|
-
right: "screen",
|
|
386
|
-
top: "edge",
|
|
387
|
-
bottom: "screen",
|
|
388
|
-
}
|
|
389
|
-
```
|
|
390
|
-
|
|
391
|
-
### With ScrollViews
|
|
392
|
-
|
|
393
|
-
Use transition-aware scrollables so gestures work correctly:
|
|
394
|
-
|
|
395
|
-
```tsx
|
|
396
|
-
<Transition.ScrollView>
|
|
397
|
-
{/* content */}
|
|
398
|
-
</Transition.ScrollView>
|
|
399
|
-
|
|
400
|
-
<Transition.FlatList data={items} renderItem={...} />
|
|
401
|
-
```
|
|
402
|
-
|
|
403
|
-
Gesture rules with scrollables:
|
|
404
|
-
- **vertical** – only activates when scrolled to top
|
|
405
|
-
- **vertical-inverted** – only activates when scrolled to bottom
|
|
406
|
-
- **horizontal** – only activates at left/right scroll edges
|
|
407
|
-
|
|
408
|
-
---
|
|
409
|
-
|
|
410
|
-
## Snap Points
|
|
411
|
-
|
|
412
|
-
Create multi-stop sheets that snap to defined positions. Works with any gesture direction (bottom sheets, top sheets, side sheets), and supports intrinsic content sizing with `"auto"` snap points.
|
|
413
|
-
|
|
414
|
-
### Basic Configuration
|
|
415
|
-
|
|
416
|
-
```tsx
|
|
417
|
-
// Bottom sheet (most common)
|
|
418
|
-
<Stack.Screen
|
|
419
|
-
name="Sheet"
|
|
420
|
-
options={{
|
|
421
|
-
gestureEnabled: true,
|
|
422
|
-
gestureDirection: "vertical",
|
|
423
|
-
snapPoints: [0.5, 1], // 50% and 100% of screen
|
|
424
|
-
initialSnapIndex: 0, // Start at 50%
|
|
425
|
-
backdropBehavior: "dismiss", // Tap backdrop to dismiss
|
|
426
|
-
...Transition.Presets.SlideFromBottom(),
|
|
427
|
-
}}
|
|
428
|
-
/>
|
|
429
|
-
|
|
430
|
-
// Side sheet (same API, different direction)
|
|
431
|
-
<Stack.Screen
|
|
432
|
-
name="SidePanel"
|
|
433
|
-
options={{
|
|
434
|
-
gestureEnabled: true,
|
|
435
|
-
gestureDirection: "horizontal",
|
|
436
|
-
snapPoints: [0.3, 0.7, 1], // 30%, 70%, 100% of screen width
|
|
437
|
-
initialSnapIndex: 1,
|
|
438
|
-
// Add a horizontal screenStyleInterpolator for drawer-style motion
|
|
439
|
-
}}
|
|
440
|
-
/>
|
|
441
|
-
|
|
442
|
-
// Auto-sized sheet
|
|
443
|
-
<Stack.Screen
|
|
444
|
-
name="Composer"
|
|
445
|
-
options={{
|
|
446
|
-
gestureEnabled: true,
|
|
447
|
-
gestureDirection: "vertical",
|
|
448
|
-
snapPoints: ["auto", 1],
|
|
449
|
-
initialSnapIndex: 0,
|
|
450
|
-
backdropBehavior: "collapse",
|
|
451
|
-
...Transition.Presets.SlideFromBottom(),
|
|
452
|
-
}}
|
|
453
|
-
/>
|
|
454
|
-
```
|
|
455
|
-
|
|
456
|
-
### Options
|
|
457
|
-
|
|
458
|
-
| Option | Description |
|
|
459
|
-
| ------------------ | -------------------------------------------------------------------- |
|
|
460
|
-
| `snapPoints` | Array of fractions (0-1) or `"auto"` values where sheet can rest |
|
|
461
|
-
| `initialSnapIndex` | Index of initial snap point (default: 0) |
|
|
462
|
-
| `gestureSnapLocked` | Locks gesture snapping to current point (programmatic `snapTo` still works) |
|
|
463
|
-
| `sheetScrollGestureBehavior` | Nested scroll handoff mode for snap sheets |
|
|
464
|
-
| `backdropBehavior` | Touch handling: `"block"`, `"passthrough"`, `"dismiss"`, `"collapse"`|
|
|
465
|
-
| `backdropComponent` | Custom backdrop component; replaces default backdrop + tap handling |
|
|
466
|
-
|
|
467
|
-
### Auto Snap Points
|
|
468
|
-
|
|
469
|
-
When you use `"auto"`, the library measures the content height and exposes it in `current.layouts.content`:
|
|
470
|
-
|
|
471
|
-
```tsx
|
|
472
|
-
screenStyleInterpolator: ({ current }) => {
|
|
473
|
-
"worklet";
|
|
474
|
-
|
|
475
|
-
const contentHeight = current.layouts.content?.height ?? 0;
|
|
476
|
-
|
|
477
|
-
return {
|
|
478
|
-
content: {
|
|
479
|
-
style: {
|
|
480
|
-
opacity: interpolate(current.snapIndex, [0, 1], [0.8, 1]),
|
|
481
|
-
},
|
|
482
|
-
},
|
|
483
|
-
"sheet-height-debug": {
|
|
484
|
-
style: {
|
|
485
|
-
opacity: contentHeight > 0 ? 1 : 0,
|
|
486
|
-
},
|
|
487
|
-
},
|
|
488
|
-
};
|
|
489
|
-
}
|
|
490
|
-
```
|
|
491
|
-
|
|
492
|
-
#### backdropBehavior Values
|
|
493
|
-
|
|
494
|
-
| Value | Description |
|
|
495
|
-
| --------------- | ---------------------------------------------------------------- |
|
|
496
|
-
| `"block"` | Backdrop catches all touches (default) |
|
|
497
|
-
| `"passthrough"` | Touches pass through to content behind |
|
|
498
|
-
| `"dismiss"` | Tapping backdrop dismisses the screen |
|
|
499
|
-
| `"collapse"` | Tapping backdrop collapses to next lower snap point, then dismisses |
|
|
500
|
-
|
|
501
|
-
#### Custom Backdrop Component
|
|
502
|
-
|
|
503
|
-
Use `backdropComponent` when you want full control over backdrop visuals and interactions.
|
|
504
|
-
|
|
505
|
-
- When provided, it replaces the default backdrop entirely (including default tap behavior)
|
|
506
|
-
- You are responsible for dismiss/collapse actions inside the custom component
|
|
507
|
-
- `backdropBehavior` still controls container-level pointer event behavior
|
|
508
|
-
|
|
509
|
-
```tsx
|
|
510
|
-
import { router } from "expo-router";
|
|
511
|
-
import { Pressable } from "react-native";
|
|
512
|
-
import Animated, { interpolate, useAnimatedStyle } from "react-native-reanimated";
|
|
513
|
-
import { useScreenAnimation } from "react-native-screen-transitions";
|
|
514
|
-
|
|
515
|
-
function SheetBackdrop() {
|
|
516
|
-
const animation = useScreenAnimation();
|
|
517
|
-
|
|
518
|
-
const style = useAnimatedStyle(() => ({
|
|
519
|
-
opacity: interpolate(animation.value.current.progress, [0, 1], [0, 0.4]),
|
|
520
|
-
backgroundColor: "#000",
|
|
521
|
-
}));
|
|
522
|
-
|
|
523
|
-
return (
|
|
524
|
-
<Pressable style={{ flex: 1 }} onPress={() => router.back()}>
|
|
525
|
-
<Animated.View style={[{ flex: 1 }, style]} />
|
|
526
|
-
</Pressable>
|
|
527
|
-
);
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
<Stack.Screen
|
|
531
|
-
name="Sheet"
|
|
532
|
-
options={{
|
|
533
|
-
snapPoints: [0.5, 1],
|
|
534
|
-
backdropBehavior: "dismiss",
|
|
535
|
-
backdropComponent: SheetBackdrop,
|
|
536
|
-
}}
|
|
537
|
-
/>
|
|
538
|
-
```
|
|
539
|
-
|
|
540
|
-
### Programmatic Control
|
|
541
|
-
|
|
542
|
-
Control snap points from anywhere in your app:
|
|
543
|
-
|
|
544
|
-
```tsx
|
|
545
|
-
import { snapTo } from "react-native-screen-transitions";
|
|
546
|
-
|
|
547
|
-
function BottomSheet() {
|
|
548
|
-
// Expand to full height (index 1)
|
|
549
|
-
const expand = () => snapTo(1);
|
|
550
|
-
|
|
551
|
-
// Collapse to half height (index 0)
|
|
552
|
-
const collapse = () => snapTo(0);
|
|
553
|
-
|
|
554
|
-
return (
|
|
555
|
-
<View>
|
|
556
|
-
<Button title="Expand" onPress={expand} />
|
|
557
|
-
<Button title="Collapse" onPress={collapse} />
|
|
558
|
-
</View>
|
|
559
|
-
);
|
|
560
|
-
}
|
|
561
|
-
```
|
|
562
|
-
|
|
563
|
-
The animated snap point index is available via `current.snapIndex` in `ScreenInterpolationProps`:
|
|
564
|
-
|
|
565
|
-
```tsx
|
|
566
|
-
screenStyleInterpolator: ({ current }) => {
|
|
567
|
-
// snapIndex interpolates between snap point indices
|
|
568
|
-
// e.g., 0.5 means halfway between snap point 0 and 1
|
|
569
|
-
return {
|
|
570
|
-
content: {
|
|
571
|
-
style: {
|
|
572
|
-
opacity: interpolate(current.snapIndex, [0, 1], [0.5, 1]),
|
|
573
|
-
},
|
|
574
|
-
},
|
|
575
|
-
};
|
|
576
|
-
}
|
|
577
|
-
```
|
|
578
|
-
|
|
579
|
-
### ScrollView Behavior
|
|
580
|
-
|
|
581
|
-
With `Transition.ScrollView` inside a snap-enabled sheet:
|
|
582
|
-
- **`sheetScrollGestureBehavior: "expand-and-collapse"`**: At boundary, swipe up expands and swipe down collapses (or dismisses at min if enabled)
|
|
583
|
-
- **`sheetScrollGestureBehavior: "collapse-only"`**: Expand works only via deadspace; collapse/dismiss via scroll still works at boundary
|
|
584
|
-
- **Scrolled into content**: Normal scroll behavior
|
|
585
|
-
|
|
586
|
-
### Snap Animation Specs
|
|
587
|
-
|
|
588
|
-
Customize snap animations separately from enter/exit:
|
|
589
|
-
|
|
590
|
-
```tsx
|
|
591
|
-
transitionSpec: {
|
|
592
|
-
open: { stiffness: 1000, damping: 500, mass: 3 }, // Screen enter
|
|
593
|
-
close: { stiffness: 1000, damping: 500, mass: 3 }, // Screen exit
|
|
594
|
-
expand: { stiffness: 300, damping: 30 }, // Snap up
|
|
595
|
-
collapse: { stiffness: 300, damping: 30 }, // Snap down
|
|
596
|
-
}
|
|
597
|
-
```
|
|
598
|
-
|
|
599
|
-
---
|
|
600
|
-
|
|
601
|
-
## Shared Elements (Bounds API)
|
|
602
|
-
|
|
603
|
-
Animate elements between screens by tagging them. In 3.4, the recommended and forward-compatible API is `Transition.Boundary.*` for explicit bounds ownership.
|
|
604
|
-
|
|
605
|
-
`sharedBoundTag` on transition-aware components is deprecated and retained for legacy flows and presets.
|
|
606
|
-
|
|
607
|
-
### 1. Tag the Source
|
|
608
|
-
|
|
609
|
-
```tsx
|
|
610
|
-
<Transition.Boundary.Trigger
|
|
611
|
-
id="avatar"
|
|
612
|
-
onPress={() => navigation.navigate("Profile")}
|
|
613
|
-
>
|
|
614
|
-
<Image source={avatar} style={{ width: 50, height: 50 }} />
|
|
615
|
-
</Transition.Boundary.Trigger>
|
|
616
|
-
```
|
|
617
|
-
|
|
618
|
-
If the boundary owner is larger than the visual element you want to match,
|
|
619
|
-
wrap the measured descendant in `Transition.Boundary.Target`:
|
|
620
|
-
|
|
621
|
-
```tsx
|
|
622
|
-
<Transition.Boundary.Trigger
|
|
623
|
-
id="avatar"
|
|
624
|
-
onPress={() => navigation.navigate("Profile")}
|
|
625
|
-
style={styles.card}
|
|
626
|
-
>
|
|
627
|
-
<Transition.Boundary.Target>
|
|
628
|
-
<Image source={avatar} style={styles.image} />
|
|
629
|
-
</Transition.Boundary.Target>
|
|
630
|
-
|
|
631
|
-
<View style={styles.copy}>
|
|
632
|
-
<Text style={styles.title}>Profile</Text>
|
|
633
|
-
</View>
|
|
634
|
-
</Transition.Boundary.Trigger>
|
|
635
|
-
```
|
|
636
|
-
|
|
637
|
-
### 2. Tag the Destination
|
|
638
|
-
|
|
639
|
-
```tsx
|
|
640
|
-
<Transition.Boundary.View id="avatar">
|
|
641
|
-
<Image source={avatar} style={{ width: 200, height: 200 }} />
|
|
642
|
-
</Transition.Boundary.View>
|
|
643
|
-
```
|
|
644
|
-
|
|
645
|
-
### 3. Use in Interpolator
|
|
646
|
-
|
|
647
|
-
```tsx
|
|
648
|
-
screenStyleInterpolator: ({ bounds }) => {
|
|
649
|
-
"worklet";
|
|
650
|
-
return {
|
|
651
|
-
avatar: bounds({ id: "avatar", method: "transform" }),
|
|
652
|
-
};
|
|
653
|
-
};
|
|
654
|
-
```
|
|
655
|
-
|
|
656
|
-
### Navigation Zoom
|
|
657
|
-
|
|
658
|
-
For fullscreen, navigation-style shared transitions:
|
|
659
|
-
|
|
660
|
-
```tsx
|
|
661
|
-
screenStyleInterpolator: ({ bounds }) => {
|
|
662
|
-
"worklet";
|
|
663
|
-
return bounds({ id: "avatar" }).navigation.zoom({
|
|
664
|
-
target: "fullscreen",
|
|
665
|
-
});
|
|
666
|
-
};
|
|
667
|
-
```
|
|
668
|
-
|
|
669
|
-
### Bounds Options
|
|
670
|
-
|
|
671
|
-
| Option | Values | Description |
|
|
672
|
-
| ----------- | ---------------------------------- | ----------------------------- |
|
|
673
|
-
| `id` | string | The boundary id to match |
|
|
674
|
-
| `group` | string | Optional group key for paged/detail flows |
|
|
675
|
-
| `method` | `"transform"` `"size"` `"content"` | How to animate |
|
|
676
|
-
| `space` | `"relative"` `"absolute"` | Coordinate space |
|
|
677
|
-
| `scaleMode` | `"match"` `"none"` `"uniform"` | Aspect ratio handling |
|
|
678
|
-
| `raw` | boolean | Return raw values |
|
|
679
|
-
|
|
680
|
-
---
|
|
681
|
-
|
|
682
|
-
## Overlays
|
|
683
|
-
|
|
684
|
-
Persistent UI that animates with the stack:
|
|
685
|
-
|
|
686
|
-
```tsx
|
|
687
|
-
const TabBar = ({ focusedIndex, progress }) => {
|
|
688
|
-
const style = useAnimatedStyle(() => ({
|
|
689
|
-
transform: [{ translateY: interpolate(progress.value, [0, 1], [100, 0]) }],
|
|
690
|
-
}));
|
|
691
|
-
return <Animated.View style={[styles.tabBar, style]} />;
|
|
692
|
-
};
|
|
693
|
-
|
|
694
|
-
<Stack.Screen
|
|
695
|
-
name="Home"
|
|
696
|
-
options={{
|
|
697
|
-
overlay: TabBar,
|
|
698
|
-
overlayShown: true,
|
|
699
|
-
}}
|
|
700
|
-
/>
|
|
701
|
-
```
|
|
702
|
-
|
|
703
|
-
### Overlay Props
|
|
704
|
-
|
|
705
|
-
| Prop | Description |
|
|
706
|
-
| -------------- | ------------------------------ |
|
|
707
|
-
| `focusedRoute` | Currently focused route |
|
|
708
|
-
| `focusedIndex` | Index of focused screen |
|
|
709
|
-
| `routes` | All routes in the stack |
|
|
710
|
-
| `progress` | Stack progress (derived value) |
|
|
711
|
-
| `navigation` | Navigation prop |
|
|
712
|
-
| `meta` | Custom metadata from options |
|
|
713
|
-
|
|
714
|
-
---
|
|
715
|
-
|
|
716
|
-
## Transition Components
|
|
717
|
-
|
|
718
|
-
| Component | Description |
|
|
719
|
-
| ----------------------- | -------------------------------------- |
|
|
720
|
-
| `Transition.View` | Animated view; `sharedBoundTag` usage is legacy/deprecated |
|
|
721
|
-
| `Transition.Pressable` | Pressable; `sharedBoundTag` usage is legacy/deprecated |
|
|
722
|
-
| `Transition.ScrollView` | ScrollView with gesture coordination |
|
|
723
|
-
| `Transition.FlatList` | FlatList with gesture coordination |
|
|
724
|
-
| `Transition.Boundary.View` | Explicit bounds destination/source registration |
|
|
725
|
-
| `Transition.Boundary.Trigger` | Pressable boundary owner that captures source bounds on press |
|
|
726
|
-
| `Transition.Boundary.Target` | Optional nested measurement target inside a boundary owner |
|
|
727
|
-
| `Transition.MaskedView` | Deprecated legacy reveal helper (requires native) |
|
|
728
|
-
|
|
729
|
-
Helper exports:
|
|
730
|
-
|
|
731
|
-
- `Transition.createBoundaryComponent(Component, { alreadyAnimated?: boolean })`
|
|
732
|
-
- `Transition.createTransitionAwareComponent(Component, { isScrollable?: boolean, alreadyAnimated?: boolean })`
|
|
733
|
-
|
|
734
|
-
---
|
|
735
|
-
|
|
736
|
-
## Hooks
|
|
737
|
-
|
|
738
|
-
### useScreenAnimation
|
|
739
|
-
|
|
740
|
-
Access animation state inside a screen:
|
|
741
|
-
|
|
742
|
-
```tsx
|
|
743
|
-
import { useScreenAnimation } from "react-native-screen-transitions";
|
|
744
|
-
|
|
745
|
-
function DetailScreen() {
|
|
746
|
-
const animation = useScreenAnimation();
|
|
747
|
-
const parentAnimation = useScreenAnimation("parent");
|
|
748
|
-
|
|
749
|
-
const style = useAnimatedStyle(() => ({
|
|
750
|
-
opacity: parentAnimation.value.current.progress,
|
|
751
|
-
}));
|
|
752
|
-
|
|
753
|
-
return <Animated.View style={style}>...</Animated.View>;
|
|
754
|
-
}
|
|
755
|
-
```
|
|
756
|
-
|
|
757
|
-
### useScreenState
|
|
758
|
-
|
|
759
|
-
Get navigation state without animation values:
|
|
760
|
-
|
|
761
|
-
```tsx
|
|
762
|
-
import { useScreenState } from "react-native-screen-transitions";
|
|
763
|
-
|
|
764
|
-
function DetailScreen() {
|
|
765
|
-
const { index, focusedRoute, routes, navigation } = useScreenState();
|
|
766
|
-
// ...
|
|
767
|
-
}
|
|
768
|
-
```
|
|
769
|
-
|
|
770
|
-
### useHistory
|
|
771
|
-
|
|
772
|
-
Access navigation history across the app:
|
|
773
|
-
|
|
774
|
-
```tsx
|
|
775
|
-
import { useHistory } from "react-native-screen-transitions";
|
|
776
|
-
|
|
777
|
-
function MyComponent() {
|
|
778
|
-
const { getRecent, getPath } = useHistory();
|
|
779
|
-
|
|
780
|
-
const recentScreens = getRecent(5); // Last 5 screens
|
|
781
|
-
const path = getPath(fromKey, toKey); // Path between screens
|
|
782
|
-
}
|
|
783
|
-
```
|
|
784
|
-
|
|
785
|
-
### useScreenGesture
|
|
786
|
-
|
|
787
|
-
Coordinate your own pan gestures with the navigation gesture:
|
|
788
|
-
|
|
789
|
-
```tsx
|
|
790
|
-
import { useScreenGesture } from "react-native-screen-transitions";
|
|
791
|
-
import { Gesture, GestureDetector } from "react-native-gesture-handler";
|
|
792
|
-
|
|
793
|
-
function MyScreen() {
|
|
794
|
-
const screenGesture = useScreenGesture();
|
|
795
|
-
const parentGesture = useScreenGesture("parent");
|
|
796
|
-
|
|
797
|
-
const myPanGesture = Gesture.Pan()
|
|
798
|
-
.simultaneousWithExternalGesture(screenGesture, parentGesture)
|
|
799
|
-
.onUpdate((e) => {
|
|
800
|
-
// Your gesture logic
|
|
801
|
-
});
|
|
802
|
-
|
|
803
|
-
return (
|
|
804
|
-
<GestureDetector gesture={myPanGesture}>
|
|
805
|
-
<View />
|
|
806
|
-
</GestureDetector>
|
|
807
|
-
);
|
|
808
|
-
}
|
|
809
|
-
```
|
|
810
|
-
|
|
811
|
-
Use this when you have custom pan gestures that need to work alongside screen dismiss gestures.
|
|
812
|
-
You can target `"self"`, `"parent"`, `"root"`, or `{ ancestor: number }`.
|
|
813
|
-
|
|
814
|
-
---
|
|
815
|
-
|
|
816
|
-
## Advanced Animation Props
|
|
817
|
-
|
|
818
|
-
The full `screenStyleInterpolator` receives these props:
|
|
819
|
-
|
|
820
|
-
| Prop | Description |
|
|
821
|
-
| ---------------- | -------------------------------------------------------- |
|
|
822
|
-
| `progress` | Combined progress (0-2) |
|
|
823
|
-
| `stackProgress` | Accumulated progress across entire stack |
|
|
824
|
-
| `focused` | Whether this screen is the topmost in the stack |
|
|
825
|
-
| `current` | Current screen state |
|
|
826
|
-
| `previous` | Previous screen state |
|
|
827
|
-
| `next` | Next screen state |
|
|
828
|
-
| `active` | Screen driving the transition |
|
|
829
|
-
| `inactive` | Screen NOT driving the transition |
|
|
830
|
-
| `insets` | Safe area insets |
|
|
831
|
-
| `bounds` | Shared element bounds function |
|
|
832
|
-
|
|
833
|
-
Prefer `current.snapIndex`, `current.layouts.screen`, and `current.layouts.content` for new code.
|
|
834
|
-
|
|
835
|
-
### Screen State Properties
|
|
836
|
-
|
|
837
|
-
Each screen state (`current`, `previous`, `next`, `active`, `inactive`) contains:
|
|
838
|
-
|
|
839
|
-
| Property | Description |
|
|
840
|
-
| ----------- | ---------------------------------------- |
|
|
841
|
-
| `progress` | Animation progress (0 or 1) |
|
|
842
|
-
| `closing` | Whether closing (0 or 1) |
|
|
843
|
-
| `entering` | Whether entering (0 or 1) |
|
|
844
|
-
| `animating` | Whether animating (0 or 1) |
|
|
845
|
-
| `logicallySettled` | Whether choreography can treat the screen as done |
|
|
846
|
-
| `snapIndex` | Animated snap point index for this screen |
|
|
847
|
-
| `layouts` | Screen and measured content layouts |
|
|
848
|
-
| `gesture` | Gesture values (x, y, `normX`, `normY`, etc.) |
|
|
849
|
-
| `meta` | Custom metadata from options |
|
|
850
|
-
|
|
851
|
-
### Using `meta` for Conditional Logic
|
|
852
|
-
|
|
853
|
-
Pass custom data between screens:
|
|
854
|
-
|
|
855
|
-
```tsx
|
|
856
|
-
// Screen A
|
|
857
|
-
options={{ meta: { hideTabBar: true } }}
|
|
858
|
-
|
|
859
|
-
// Screen B reads it
|
|
860
|
-
screenStyleInterpolator: (props) => {
|
|
861
|
-
"worklet";
|
|
862
|
-
const hideTabBar = props.inactive?.meta?.hideTabBar;
|
|
863
|
-
// ...
|
|
864
|
-
};
|
|
865
|
-
```
|
|
866
|
-
|
|
867
|
-
### Animate Individual Elements
|
|
868
|
-
|
|
869
|
-
Use `styleId` to target specific elements:
|
|
870
|
-
|
|
871
|
-
```tsx
|
|
872
|
-
// In options
|
|
873
|
-
screenStyleInterpolator: ({ progress }) => {
|
|
874
|
-
"worklet";
|
|
875
|
-
return {
|
|
876
|
-
"hero-image": {
|
|
877
|
-
style: {
|
|
878
|
-
opacity: interpolate(progress, [0, 1], [0, 1]),
|
|
879
|
-
},
|
|
880
|
-
},
|
|
881
|
-
};
|
|
882
|
-
};
|
|
883
|
-
|
|
884
|
-
// In component
|
|
885
|
-
<Transition.View styleId="hero-image">
|
|
886
|
-
<Image source={...} />
|
|
887
|
-
</Transition.View>
|
|
888
|
-
```
|
|
889
|
-
|
|
890
|
-
---
|
|
891
|
-
|
|
892
|
-
## Stack Types
|
|
893
|
-
|
|
894
|
-
Blank stack and native stack are the primary APIs. Component stack remains available as a deprecated compatibility API.
|
|
895
|
-
|
|
896
|
-
| Stack | Best For |
|
|
897
|
-
| ------------------- | --------------------------------------------------------- |
|
|
898
|
-
| **Blank Stack** | Most apps. Full control, all features. |
|
|
899
|
-
| **Native Stack** | When you need native screen primitives. |
|
|
900
|
-
| **Component Stack** | Legacy embedded-flow API. Prefer blank stack instead. |
|
|
901
|
-
|
|
902
|
-
### Blank Stack
|
|
903
|
-
|
|
904
|
-
The default choice. Uses `react-native-screens` for native screen containers, with animations powered by Reanimated worklets running on the UI thread (not the JS thread).
|
|
905
|
-
|
|
906
|
-
```tsx
|
|
907
|
-
import { createBlankStackNavigator } from "react-native-screen-transitions/blank-stack";
|
|
908
|
-
```
|
|
909
|
-
|
|
910
|
-
### Native Stack
|
|
911
|
-
|
|
912
|
-
Extends `@react-navigation/native-stack`. Requires `enableTransitions: true`.
|
|
913
|
-
|
|
914
|
-
```tsx
|
|
915
|
-
import { createNativeStackNavigator } from "react-native-screen-transitions/native-stack";
|
|
916
|
-
|
|
917
|
-
<Stack.Screen
|
|
918
|
-
name="Detail"
|
|
919
|
-
options={{
|
|
920
|
-
enableTransitions: true,
|
|
921
|
-
...Transition.Presets.SlideFromBottom(),
|
|
922
|
-
}}
|
|
923
|
-
/>
|
|
924
|
-
```
|
|
925
|
-
|
|
926
|
-
### Component Stack (Deprecated)
|
|
927
|
-
|
|
928
|
-
> **Note:** Prefer blank stack for new work. It now covers the embedded and independent flow use case.
|
|
929
|
-
|
|
930
|
-
Standalone navigator, not connected to React Navigation. Kept for compatibility with older integrations.
|
|
931
|
-
|
|
932
|
-
```tsx
|
|
933
|
-
import { createComponentStackNavigator } from "react-native-screen-transitions/component-stack";
|
|
934
|
-
|
|
935
|
-
const Stack = createComponentStackNavigator();
|
|
936
|
-
|
|
937
|
-
<Stack.Navigator initialRouteName="step1">
|
|
938
|
-
<Stack.Screen name="step1" component={Step1} />
|
|
939
|
-
<Stack.Screen name="step2" component={Step2} />
|
|
940
|
-
</Stack.Navigator>
|
|
941
|
-
```
|
|
942
|
-
|
|
943
|
-
---
|
|
944
|
-
|
|
945
|
-
## Caveats & Trade-offs
|
|
946
|
-
|
|
947
|
-
### Native Stack
|
|
948
|
-
|
|
949
|
-
The Native Stack uses transparent modal presentation to intercept transitions. This has trade-offs:
|
|
950
|
-
|
|
951
|
-
- **Delayed touch events** – Exiting screens may have briefly delayed touch response
|
|
952
|
-
- **beforeRemove listeners** – Relies on navigation lifecycle events
|
|
953
|
-
- **Rapid navigation** – Some edge cases with very fast navigation sequences
|
|
954
|
-
|
|
955
|
-
For most apps, Blank Stack avoids these issues entirely.
|
|
956
|
-
|
|
957
|
-
### Component Stack (Deprecated Compatibility)
|
|
958
|
-
|
|
959
|
-
- **No deep linking** – Routes aren't part of your URL structure
|
|
960
|
-
- **Isolated state** – Doesn't affect parent navigation
|
|
961
|
-
- **Touch pass-through** – Uses `pointerEvents="box-none"` by default
|
|
962
|
-
|
|
963
|
-
---
|
|
964
|
-
|
|
965
|
-
## Experimental Features
|
|
36
|
+
See [the documentation site](https://screen-transitions.esjr.org).
|
|
966
37
|
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
Force maximum refresh rate during transitions (for 90Hz/120Hz displays):
|
|
970
|
-
|
|
971
|
-
```tsx
|
|
972
|
-
options={{
|
|
973
|
-
experimental_enableHighRefreshRate: true,
|
|
974
|
-
}}
|
|
975
|
-
```
|
|
976
|
-
|
|
977
|
-
### Animate On Initial Mount
|
|
978
|
-
|
|
979
|
-
Animate the first screen in a navigator instead of snapping it directly to the settled state:
|
|
980
|
-
|
|
981
|
-
```tsx
|
|
982
|
-
options={{
|
|
983
|
-
experimental_animateOnInitialMount: true,
|
|
984
|
-
}}
|
|
985
|
-
```
|
|
986
|
-
|
|
987
|
-
---
|
|
988
|
-
|
|
989
|
-
## Legacy Masked View Setup (Deprecated)
|
|
990
|
-
|
|
991
|
-
`Transition.MaskedView` and `sharedBoundTag` are deprecated for new work.
|
|
992
|
-
|
|
993
|
-
Prefer `Transition.Boundary.*` for explicit shared-element ownership, and prefer `bounds({ id }).navigation.zoom()` with `navigationMaskEnabled` when you want library-managed navigation-style masked transitions.
|
|
994
|
-
|
|
995
|
-
If you used early 3.4 prerelease docs or examples, `maskEnabled` remains accepted as a compatibility alias, but new docs and examples should use `navigationMaskEnabled`.
|
|
996
|
-
|
|
997
|
-
This section is kept for compatibility with legacy presets such as `SharedIGImage` and `SharedAppleMusic`.
|
|
998
|
-
|
|
999
|
-
> **Note**: Requires native code. Will not work in Expo Go.
|
|
1000
|
-
|
|
1001
|
-
### Installation
|
|
1002
|
-
|
|
1003
|
-
```bash
|
|
1004
|
-
# Expo
|
|
1005
|
-
npx expo install @react-native-masked-view/masked-view
|
|
1006
|
-
|
|
1007
|
-
# Bare React Native
|
|
1008
|
-
npm install @react-native-masked-view/masked-view
|
|
1009
|
-
cd ios && pod install
|
|
1010
|
-
```
|
|
1011
|
-
|
|
1012
|
-
### Full Example
|
|
1013
|
-
|
|
1014
|
-
**1. Source Screen** – Tag pressable elements:
|
|
1015
|
-
|
|
1016
|
-
```tsx
|
|
1017
|
-
// app/index.tsx
|
|
1018
|
-
import { router } from "expo-router";
|
|
1019
|
-
import { View } from "react-native";
|
|
1020
|
-
import Transition from "react-native-screen-transitions";
|
|
1021
|
-
|
|
1022
|
-
export default function HomeScreen() {
|
|
1023
|
-
return (
|
|
1024
|
-
<View style={{ flex: 1, alignItems: "center", justifyContent: "center" }}>
|
|
1025
|
-
<Transition.Pressable
|
|
1026
|
-
sharedBoundTag="album-art"
|
|
1027
|
-
style={{
|
|
1028
|
-
width: 200,
|
|
1029
|
-
height: 200,
|
|
1030
|
-
backgroundColor: "#1DB954",
|
|
1031
|
-
borderRadius: 12,
|
|
1032
|
-
}}
|
|
1033
|
-
onPress={() => {
|
|
1034
|
-
router.push({
|
|
1035
|
-
pathname: "/details",
|
|
1036
|
-
params: { sharedBoundTag: "album-art" },
|
|
1037
|
-
});
|
|
1038
|
-
}}
|
|
1039
|
-
/>
|
|
1040
|
-
</View>
|
|
1041
|
-
);
|
|
1042
|
-
}
|
|
1043
|
-
```
|
|
1044
|
-
|
|
1045
|
-
**2. Destination Screen** – Wrap with MaskedView and match the tag:
|
|
1046
|
-
|
|
1047
|
-
```tsx
|
|
1048
|
-
// app/details.tsx
|
|
1049
|
-
import { useLocalSearchParams } from "expo-router";
|
|
1050
|
-
import Transition from "react-native-screen-transitions";
|
|
1051
|
-
|
|
1052
|
-
export default function DetailsScreen() {
|
|
1053
|
-
const { sharedBoundTag } = useLocalSearchParams<{ sharedBoundTag: string }>();
|
|
1054
|
-
|
|
1055
|
-
return (
|
|
1056
|
-
<Transition.MaskedView style={{ flex: 1, backgroundColor: "#121212" }}>
|
|
1057
|
-
<Transition.View
|
|
1058
|
-
sharedBoundTag={sharedBoundTag}
|
|
1059
|
-
style={{
|
|
1060
|
-
backgroundColor: "#1DB954",
|
|
1061
|
-
width: 400,
|
|
1062
|
-
height: 400,
|
|
1063
|
-
alignSelf: "center",
|
|
1064
|
-
borderRadius: 12,
|
|
1065
|
-
}}
|
|
1066
|
-
/>
|
|
1067
|
-
{/* Additional screen content */}
|
|
1068
|
-
</Transition.MaskedView>
|
|
1069
|
-
);
|
|
1070
|
-
}
|
|
1071
|
-
```
|
|
1072
|
-
|
|
1073
|
-
**3. Layout** – Apply the preset with dynamic tag:
|
|
1074
|
-
|
|
1075
|
-
```tsx
|
|
1076
|
-
// app/_layout.tsx
|
|
1077
|
-
import Transition from "react-native-screen-transitions";
|
|
1078
|
-
import { Stack } from "./stack";
|
|
1079
|
-
|
|
1080
|
-
export default function RootLayout() {
|
|
1081
|
-
return (
|
|
1082
|
-
<Stack>
|
|
1083
|
-
<Stack.Screen name="index" />
|
|
1084
|
-
<Stack.Screen
|
|
1085
|
-
name="details"
|
|
1086
|
-
options={({ route }) => ({
|
|
1087
|
-
...Transition.Presets.SharedAppleMusic({
|
|
1088
|
-
sharedBoundTag: route.params?.sharedBoundTag ?? "",
|
|
1089
|
-
}),
|
|
1090
|
-
})}
|
|
1091
|
-
/>
|
|
1092
|
-
</Stack>
|
|
1093
|
-
);
|
|
1094
|
-
}
|
|
1095
|
-
```
|
|
38
|
+
## Support
|
|
1096
39
|
|
|
1097
|
-
|
|
40
|
+
v3 (current) supports Reanimated v3, Reanimated v4, and React Native Gesture Handler v2.
|
|
1098
41
|
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
4. The preset interpolates position, size, and mask for a seamless expand/collapse effect
|
|
42
|
+
| Line | Reanimated | React Native Gesture Handler |
|
|
43
|
+
| ---- | ---------- | ---------------------------- |
|
|
44
|
+
| v3 (current) | v3, v4 | v2 |
|
|
1103
45
|
|
|
1104
|
-
|
|
46
|
+
## Author
|
|
1105
47
|
|
|
1106
|
-
|
|
48
|
+
Ed
|
|
1107
49
|
|
|
1108
|
-
|
|
50
|
+
## Sponsor & Support
|
|
1109
51
|
|
|
1110
|
-
If you'd like to fuel the next release, [buy me a coffee](https://buymeacoffee.com/trpfsu)
|
|
52
|
+
If you'd like to fuel the next release, [buy me a coffee](https://buymeacoffee.com/trpfsu).
|
|
1111
53
|
|
|
1112
54
|
## License
|
|
1113
55
|
|