react-native-screen-transitions 3.4.0-alpha.0 → 3.4.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 +65 -2
- package/lib/commonjs/shared/animation/snap-to.js +5 -1
- package/lib/commonjs/shared/animation/snap-to.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js +5 -10
- package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js +2 -2
- package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/index.js +1 -3
- package/lib/commonjs/shared/components/overlay/index.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +2 -16
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/commonjs/shared/components/scene-view.js +2 -4
- package/lib/commonjs/shared/components/scene-view.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +9 -6
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/content.js +47 -55
- 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 +77 -0
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition.js +17 -4
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +1 -1
- package/lib/commonjs/shared/constants.js +6 -2
- package/lib/commonjs/shared/constants.js.map +1 -1
- package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js +49 -0
- package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js.map +1 -0
- package/lib/commonjs/shared/hooks/gestures/types.js +2 -0
- package/lib/commonjs/shared/hooks/gestures/types.js.map +1 -0
- package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js +7 -3
- package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js.map +1 -1
- package/lib/commonjs/shared/hooks/navigation/use-stack.js.map +1 -1
- package/lib/commonjs/shared/index.js +15 -3
- package/lib/commonjs/shared/index.js.map +1 -1
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js +55 -18
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-snap-points.js +44 -0
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-snap-points.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +31 -17
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js +1 -9
- package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +11 -6
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js +33 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/types.js +2 -0
- package/lib/commonjs/shared/providers/screen/animation/types.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js +9 -3
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/direct.provider.js +1 -1
- package/lib/commonjs/shared/providers/stack/direct.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-processed-routes.js +1 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-processed-routes.js.map +1 -1
- package/lib/commonjs/shared/stores/animation.store.js +8 -2
- package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +7 -0
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js +6 -0
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js +24 -9
- package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/geometry.js +3 -2
- package/lib/commonjs/shared/utils/bounds/helpers/geometry.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js +3 -2
- package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js +2 -2
- package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js +6 -5
- package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js +4 -3
- package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/index.js +3 -3
- package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/zoom/accessor.js +54 -0
- package/lib/commonjs/shared/utils/bounds/zoom/accessor.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/zoom/build.js +541 -0
- package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/zoom/config.js +118 -0
- package/lib/commonjs/shared/utils/bounds/zoom/config.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/zoom/index.js +20 -0
- package/lib/commonjs/shared/utils/bounds/zoom/index.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/zoom/types.js.map +1 -0
- package/lib/commonjs/shared/utils/gesture/validate-snap-points.js +11 -5
- package/lib/commonjs/shared/utils/gesture/validate-snap-points.js.map +1 -1
- package/lib/commonjs/shared/utils/overlay/visibility.js +2 -9
- package/lib/commonjs/shared/utils/overlay/visibility.js.map +1 -1
- package/lib/module/shared/animation/snap-to.js +5 -1
- package/lib/module/shared/animation/snap-to.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js +5 -10
- package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
- package/lib/module/shared/components/overlay/helpers/get-active-overlay.js +3 -3
- package/lib/module/shared/components/overlay/helpers/get-active-overlay.js.map +1 -1
- package/lib/module/shared/components/overlay/index.js +1 -3
- package/lib/module/shared/components/overlay/index.js.map +1 -1
- package/lib/module/shared/components/overlay/variations/overlay-host.js +3 -17
- package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/module/shared/components/scene-view.js +3 -5
- package/lib/module/shared/components/scene-view.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/backdrop.js +9 -6
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/content.js +52 -60
- 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 +72 -0
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition.js +17 -4
- package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +1 -1
- package/lib/module/shared/constants.js +6 -2
- package/lib/module/shared/constants.js.map +1 -1
- package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js +45 -0
- package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js.map +1 -0
- package/lib/module/shared/hooks/gestures/types.js +2 -0
- package/lib/module/shared/hooks/gestures/types.js.map +1 -0
- package/lib/module/shared/hooks/gestures/use-screen-gesture.js +7 -4
- package/lib/module/shared/hooks/gestures/use-screen-gesture.js.map +1 -1
- package/lib/module/shared/hooks/navigation/use-stack.js.map +1 -1
- package/lib/module/shared/index.js +1 -2
- package/lib/module/shared/index.js.map +1 -1
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js +55 -18
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-snap-points.js +38 -0
- package/lib/module/shared/providers/gestures/helpers/gesture-snap-points.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/animation.provider.js +30 -15
- package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/derivations.js +1 -9
- package/lib/module/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +11 -6
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js +29 -0
- package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/index.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/types.js +2 -0
- package/lib/module/shared/providers/screen/animation/types.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js +9 -3
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/module/shared/providers/stack/direct.provider.js +2 -2
- package/lib/module/shared/providers/stack/direct.provider.js.map +1 -1
- package/lib/module/shared/providers/stack/helpers/use-processed-routes.js +2 -2
- package/lib/module/shared/providers/stack/helpers/use-processed-routes.js.map +1 -1
- package/lib/module/shared/stores/animation.store.js +8 -2
- package/lib/module/shared/stores/animation.store.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/resolver.js +7 -0
- package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/module/shared/utils/animation/animate-to-progress.js +6 -0
- package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js +24 -9
- package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/geometry.js +3 -2
- package/lib/module/shared/utils/bounds/helpers/geometry.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/interpolators.js +3 -2
- package/lib/module/shared/utils/bounds/helpers/interpolators.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/link-accessor.js +2 -2
- package/lib/module/shared/utils/bounds/helpers/link-accessor.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js +6 -5
- package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/style-composers.js +4 -3
- package/lib/module/shared/utils/bounds/helpers/style-composers.js.map +1 -1
- package/lib/module/shared/utils/bounds/index.js +3 -3
- package/lib/module/shared/utils/bounds/index.js.map +1 -1
- package/lib/module/shared/utils/bounds/zoom/accessor.js +49 -0
- package/lib/module/shared/utils/bounds/zoom/accessor.js.map +1 -0
- package/lib/module/shared/utils/bounds/zoom/build.js +536 -0
- package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -0
- package/lib/module/shared/utils/bounds/zoom/config.js +112 -0
- package/lib/module/shared/utils/bounds/zoom/config.js.map +1 -0
- package/lib/module/shared/utils/bounds/zoom/index.js +5 -0
- package/lib/module/shared/utils/bounds/zoom/index.js.map +1 -0
- package/lib/module/shared/utils/bounds/zoom/types.js.map +1 -0
- package/lib/module/shared/utils/gesture/validate-snap-points.js +11 -5
- package/lib/module/shared/utils/gesture/validate-snap-points.js.map +1 -1
- package/lib/module/shared/utils/overlay/visibility.js +1 -7
- package/lib/module/shared/utils/overlay/visibility.js.map +1 -1
- package/lib/typescript/shared/animation/snap-to.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts +0 -1
- package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/helpers/get-active-overlay.d.ts +1 -1
- package/lib/typescript/shared/components/overlay/index.d.ts +0 -2
- package/lib/typescript/shared/components/overlay/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/scene-view.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/content.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts +7 -0
- package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts +3 -0
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts +10 -0
- package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/gestures/types.d.ts +4 -0
- package/lib/typescript/shared/hooks/gestures/types.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts +4 -2
- package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/navigation/use-stack.d.ts +1 -2
- package/lib/typescript/shared/hooks/navigation/use-stack.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +16 -17
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +1 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-snap-points.d.ts +18 -0
- package/lib/typescript/shared/providers/gestures/helpers/gesture-snap-points.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts +6 -3
- package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts +0 -2
- package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts +11 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/index.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/animation/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/types.d.ts +4 -0
- package/lib/typescript/shared/providers/screen/animation/types.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts +5 -1
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/stack/direct.provider.d.ts.map +1 -1
- package/lib/typescript/shared/stores/animation.store.d.ts +4 -0
- package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/types.d.ts +2 -0
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +26 -51
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/bounds.types.d.ts +46 -9
- package/lib/typescript/shared/types/bounds.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/overlay.types.d.ts +1 -22
- package/lib/typescript/shared/types/overlay.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/screen.types.d.ts +16 -15
- package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts +2 -2
- package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts +3 -2
- package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts +3 -2
- package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts +3 -2
- package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts +2 -1
- package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts +4 -3
- package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/types/options.d.ts +5 -4
- package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/accessor.d.ts +17 -0
- package/lib/typescript/shared/utils/bounds/zoom/accessor.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/zoom/build.d.ts +4 -0
- package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/zoom/config.d.ts +43 -0
- package/lib/typescript/shared/utils/bounds/zoom/config.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/zoom/index.d.ts +3 -0
- package/lib/typescript/shared/utils/bounds/zoom/index.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/zoom/types.d.ts +17 -0
- package/lib/typescript/shared/utils/bounds/zoom/types.d.ts.map +1 -0
- package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts +5 -3
- package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts.map +1 -1
- package/lib/typescript/shared/utils/overlay/visibility.d.ts +1 -4
- package/lib/typescript/shared/utils/overlay/visibility.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/shared/animation/snap-to.ts +12 -1
- package/src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts +2 -14
- package/src/shared/components/overlay/helpers/get-active-overlay.ts +3 -3
- package/src/shared/components/overlay/index.ts +0 -2
- package/src/shared/components/overlay/variations/overlay-host.tsx +2 -16
- package/src/shared/components/scene-view.tsx +0 -3
- package/src/shared/components/screen-container/layers/backdrop.tsx +25 -6
- package/src/shared/components/screen-container/layers/content.tsx +80 -77
- package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +93 -0
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition/index.ts +1 -2
- package/src/shared/components/screen-lifecycle/hooks/use-open-transition.ts +20 -6
- package/src/shared/constants.ts +6 -2
- package/src/shared/hooks/gestures/resolve-screen-gesture-target.ts +66 -0
- package/src/shared/hooks/gestures/types.ts +5 -0
- package/src/shared/hooks/gestures/use-screen-gesture.ts +10 -3
- package/src/shared/hooks/navigation/use-stack.tsx +1 -2
- package/src/shared/index.ts +14 -16
- package/src/shared/providers/gestures/handlers/use-handlers.ts +67 -24
- package/src/shared/providers/gestures/helpers/gesture-snap-points.ts +72 -0
- package/src/shared/providers/screen/animation/animation.provider.tsx +46 -10
- package/src/shared/providers/screen/animation/helpers/derivations.ts +0 -8
- package/src/shared/providers/screen/animation/helpers/pipeline.ts +26 -5
- package/src/shared/providers/screen/animation/helpers/resolve-screen-animation-target.ts +44 -0
- package/src/shared/providers/screen/animation/index.tsx +4 -1
- package/src/shared/providers/screen/animation/types.ts +5 -0
- package/src/shared/providers/screen/animation/use-screen-animation.tsx +16 -3
- package/src/shared/providers/stack/direct.provider.tsx +2 -5
- package/src/shared/providers/stack/helpers/use-processed-routes.ts +2 -2
- package/src/shared/stores/animation.store.ts +13 -1
- package/src/shared/stores/bounds/internals/resolver.ts +13 -1
- package/src/shared/stores/bounds/types.ts +2 -0
- package/src/shared/types/animation.types.ts +25 -58
- package/src/shared/types/bounds.types.ts +30 -10
- package/src/shared/types/index.ts +2 -15
- package/src/shared/types/overlay.types.ts +1 -28
- package/src/shared/types/screen.types.ts +17 -16
- package/src/shared/utils/animation/animate-to-progress.ts +7 -0
- package/src/shared/utils/bounds/helpers/build-bounds-options.ts +2 -2
- package/src/shared/utils/bounds/helpers/compute-bounds-styles.ts +34 -8
- package/src/shared/utils/bounds/helpers/geometry.ts +3 -2
- package/src/shared/utils/bounds/helpers/interpolators.ts +8 -6
- package/src/shared/utils/bounds/helpers/link-accessor.ts +10 -6
- package/src/shared/utils/bounds/helpers/resolve-bound-tag.ts +9 -6
- package/src/shared/utils/bounds/helpers/style-composers.ts +4 -3
- package/src/shared/utils/bounds/index.ts +6 -8
- package/src/shared/utils/bounds/types/options.ts +6 -4
- package/src/shared/utils/bounds/zoom/accessor.ts +69 -0
- package/src/shared/utils/bounds/zoom/build.ts +705 -0
- package/src/shared/utils/bounds/zoom/config.ts +179 -0
- package/src/shared/utils/bounds/zoom/index.ts +2 -0
- package/src/shared/utils/bounds/zoom/types.ts +22 -0
- package/src/shared/utils/gesture/validate-snap-points.ts +20 -8
- package/src/shared/utils/overlay/visibility.ts +1 -16
- package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js +0 -64
- package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/math.js +0 -132
- package/lib/commonjs/shared/utils/bounds/helpers/math.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/navigation-accessor.js +0 -45
- package/lib/commonjs/shared/utils/bounds/helpers/navigation-accessor.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/helpers.js +0 -60
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/helpers.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/index.js +0 -20
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/index.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/types.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/zoom.js +0 -295
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/zoom.js.map +0 -1
- package/lib/module/shared/components/overlay/variations/screen-overlay.js +0 -61
- package/lib/module/shared/components/overlay/variations/screen-overlay.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/math.js +0 -115
- package/lib/module/shared/utils/bounds/helpers/math.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/navigation-accessor.js +0 -40
- package/lib/module/shared/utils/bounds/helpers/navigation-accessor.js.map +0 -1
- package/lib/module/shared/utils/bounds/sugar/navigation/helpers.js +0 -54
- package/lib/module/shared/utils/bounds/sugar/navigation/helpers.js.map +0 -1
- package/lib/module/shared/utils/bounds/sugar/navigation/index.js +0 -15
- package/lib/module/shared/utils/bounds/sugar/navigation/index.js.map +0 -1
- package/lib/module/shared/utils/bounds/sugar/navigation/types.js.map +0 -1
- package/lib/module/shared/utils/bounds/sugar/navigation/zoom.js +0 -290
- package/lib/module/shared/utils/bounds/sugar/navigation/zoom.js.map +0 -1
- package/lib/typescript/shared/components/overlay/variations/screen-overlay.d.ts +0 -10
- package/lib/typescript/shared/components/overlay/variations/screen-overlay.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/math.d.ts +0 -38
- package/lib/typescript/shared/utils/bounds/helpers/math.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/navigation-accessor.d.ts +0 -16
- package/lib/typescript/shared/utils/bounds/helpers/navigation-accessor.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/sugar/navigation/helpers.d.ts +0 -17
- package/lib/typescript/shared/utils/bounds/sugar/navigation/helpers.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/sugar/navigation/index.d.ts +0 -3
- package/lib/typescript/shared/utils/bounds/sugar/navigation/index.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/sugar/navigation/types.d.ts +0 -18
- package/lib/typescript/shared/utils/bounds/sugar/navigation/types.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/sugar/navigation/zoom.d.ts +0 -4
- package/lib/typescript/shared/utils/bounds/sugar/navigation/zoom.d.ts.map +0 -1
- package/src/shared/components/overlay/variations/screen-overlay.tsx +0 -68
- package/src/shared/utils/bounds/helpers/math.ts +0 -161
- package/src/shared/utils/bounds/helpers/navigation-accessor.ts +0 -61
- package/src/shared/utils/bounds/sugar/navigation/helpers.ts +0 -74
- package/src/shared/utils/bounds/sugar/navigation/index.ts +0 -14
- package/src/shared/utils/bounds/sugar/navigation/types.ts +0 -26
- package/src/shared/utils/bounds/sugar/navigation/zoom.ts +0 -348
- /package/lib/commonjs/shared/utils/bounds/{sugar/navigation → zoom}/types.js +0 -0
- /package/lib/module/shared/utils/bounds/{sugar/navigation → zoom}/types.js +0 -0
package/README.md
CHANGED
|
@@ -437,6 +437,7 @@ Use `surfaceComponent` to render a custom surface inside the animated content wr
|
|
|
437
437
|
- `content` drives container-level transitions (position/scale/opacity)
|
|
438
438
|
- `surface` drives custom surface styles/props
|
|
439
439
|
- Animated props are driven by the `surface` slot in your interpolator
|
|
440
|
+
- When `maskEnabled: true` is active, the surface is rendered inside the masked navigation container so it stays clipped/transformed with zoom transitions
|
|
440
441
|
|
|
441
442
|
```tsx
|
|
442
443
|
import { SquircleView } from "react-native-figma-squircle";
|
|
@@ -652,7 +653,38 @@ For SwiftUI-like navigation zoom transitions where content expands from a source
|
|
|
652
653
|
|
|
653
654
|
`bounds().navigation.zoom()` returns a complete interpolator result with content, mask, and container styles. Set `maskEnabled: true` to pre-mount the masked view wrapper so it's ready from the first frame.
|
|
654
655
|
|
|
655
|
-
`navigation
|
|
656
|
+
When using `surfaceComponent`, it participates in the same masked navigation container path under `maskEnabled: true`, so surface and children animate/clip together during zoom.
|
|
657
|
+
|
|
658
|
+
`navigation.zoom(options?)` accepts optional zoom overrides for mask shape and drag feel.
|
|
659
|
+
|
|
660
|
+
```tsx
|
|
661
|
+
screenStyleInterpolator: ({ bounds, focused }) => {
|
|
662
|
+
"worklet";
|
|
663
|
+
if (!focused) return {};
|
|
664
|
+
|
|
665
|
+
return bounds({ id: "album-art" }).navigation.zoom({
|
|
666
|
+
mask: {
|
|
667
|
+
borderRadius: { from: 24, to: 0 },
|
|
668
|
+
borderCurve: "continuous",
|
|
669
|
+
outset: { bottom: 16 },
|
|
670
|
+
},
|
|
671
|
+
motion: {
|
|
672
|
+
dragResistance: 0.32,
|
|
673
|
+
dragDirectionalScaleMin: 0.2,
|
|
674
|
+
},
|
|
675
|
+
});
|
|
676
|
+
};
|
|
677
|
+
```
|
|
678
|
+
|
|
679
|
+
`navigation.zoom(options)` fields:
|
|
680
|
+
- `anchor`, `scaleMode`, `target`: same meaning as `bounds({ ... })` options
|
|
681
|
+
- `mask.borderRadius`: `number`, `"auto"`, or `{ from, to }`
|
|
682
|
+
- `mask.borderTopLeftRadius`, `mask.borderTopRightRadius`, `mask.borderBottomLeftRadius`, `mask.borderBottomRightRadius`: per-corner overrides
|
|
683
|
+
- `mask.borderCurve`: `"circular"` or `"continuous"` (where supported)
|
|
684
|
+
- `mask.outset`: `number` or `{ top, right, bottom, left }` to expand mask bounds and avoid edge clipping
|
|
685
|
+
- `motion.dragResistance`: drag translation resistance (default `0.4`)
|
|
686
|
+
- `motion.dragDirectionalScaleMin`: directional drag minimum scale (default `0.25`)
|
|
687
|
+
- `maskBorderRadius`: deprecated alias for `mask.borderRadius`
|
|
656
688
|
|
|
657
689
|
Configuration guidance:
|
|
658
690
|
- Preferred: define transition configuration on boundary components (`anchor`, `scaleMode`, `target`, `method`) via `Transition.Boundary.View` / `Transition.Boundary.Pressable`.
|
|
@@ -730,7 +762,9 @@ const TabBar = ({ focusedIndex, progress }) => {
|
|
|
730
762
|
|
|
731
763
|
### useScreenAnimation
|
|
732
764
|
|
|
733
|
-
Access animation state inside a screen
|
|
765
|
+
Access animation state inside a screen.
|
|
766
|
+
|
|
767
|
+
By default, this returns the local screen animation values:
|
|
734
768
|
|
|
735
769
|
```tsx
|
|
736
770
|
import { useScreenAnimation } from "react-native-screen-transitions";
|
|
@@ -746,6 +780,35 @@ function DetailScreen() {
|
|
|
746
780
|
}
|
|
747
781
|
```
|
|
748
782
|
|
|
783
|
+
You can also target ancestor animations:
|
|
784
|
+
|
|
785
|
+
```tsx
|
|
786
|
+
const self = useScreenAnimation(); // local screen
|
|
787
|
+
const parent = useScreenAnimation("parent"); // immediate parent
|
|
788
|
+
const root = useScreenAnimation("root"); // highest ancestor
|
|
789
|
+
const grandparent = useScreenAnimation({ ancestor: 2 }); // explicit depth
|
|
790
|
+
```
|
|
791
|
+
|
|
792
|
+
If the requested target does not exist, the hook automatically falls back to local (`self`) values.
|
|
793
|
+
|
|
794
|
+
Nested navigator example (`/_layout -> nested/_layout -> index`) where the leaf animates with the parent gesture:
|
|
795
|
+
|
|
796
|
+
```tsx
|
|
797
|
+
import Animated, { useAnimatedStyle } from "react-native-reanimated";
|
|
798
|
+
import { useScreenAnimation } from "react-native-screen-transitions";
|
|
799
|
+
|
|
800
|
+
function NestedIndexScreen() {
|
|
801
|
+
const parentAnimation = useScreenAnimation("parent");
|
|
802
|
+
|
|
803
|
+
const staggeredStyle = useAnimatedStyle(() => ({
|
|
804
|
+
opacity: parentAnimation.value.active.progress,
|
|
805
|
+
transform: [{ translateY: (1 - parentAnimation.value.active.progress) * 16 }],
|
|
806
|
+
}));
|
|
807
|
+
|
|
808
|
+
return <Animated.View style={staggeredStyle}>{/* content */}</Animated.View>;
|
|
809
|
+
}
|
|
810
|
+
```
|
|
811
|
+
|
|
749
812
|
### useScreenState
|
|
750
813
|
|
|
751
814
|
Get navigation state without animation values:
|
|
@@ -14,7 +14,11 @@ var _resolveSnapTarget = require("./resolve-snap-target");
|
|
|
14
14
|
const getSortedSnapPoints = descriptor => {
|
|
15
15
|
const snapPoints = descriptor.options?.snapPoints;
|
|
16
16
|
if (!snapPoints || snapPoints.length === 0) return null;
|
|
17
|
-
|
|
17
|
+
|
|
18
|
+
// Resolve 'auto' to the measured fraction stored in AnimationStore
|
|
19
|
+
const autoVal = _animation.AnimationStore.getAnimation(descriptor.route.key, "autoSnapPoint").value;
|
|
20
|
+
const resolved = snapPoints.map(p => p === "auto" ? autoVal : p).filter(p => typeof p === "number" && p > 0);
|
|
21
|
+
return resolved.length > 0 ? resolved.sort((a, b) => a - b) : null;
|
|
18
22
|
};
|
|
19
23
|
function snapDescriptorToIndex(descriptor, index) {
|
|
20
24
|
const sorted = getSortedSnapPoints(descriptor);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_specs","_animation","_animateToProgress","_logger","_resolveSnapTarget","getSortedSnapPoints","descriptor","snapPoints","options","length","sort","a","b","snapDescriptorToIndex","index","sorted","logger","warn","targetProgress","animations","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_specs","_animation","_animateToProgress","_logger","_resolveSnapTarget","getSortedSnapPoints","descriptor","snapPoints","options","length","autoVal","AnimationStore","getAnimation","route","key","value","resolved","map","p","filter","sort","a","b","snapDescriptorToIndex","index","sorted","logger","warn","targetProgress","animations","getRouteAnimations","runOnUI","animateToProgress","target","spec","open","transitionSpec","expand","DefaultSnapSpec","close","collapse","snapTo","screenWithSnapPoints","resolveSnapTargetEntry"],"sourceRoot":"../../../../src","sources":["shared/animation/snap-to.ts"],"mappings":";;;;;;;AAAA,IAAAA,sBAAA,GAA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AAO,KAAK;EACb;EAEA,MAAMmB,cAAc,GAAGH,MAAM,CAACD,KAAK,CAAC;EACpC,MAAMK,UAAU,GAAGlB,yBAAc,CAACmB,kBAAkB,CAACxB,UAAU,CAACO,KAAK,CAACC,GAAG,CAAC;EAE1E,IAAAiB,8BAAO,EAAC,MAAM;IACb,SAAS;;IACT,IAAAC,oCAAiB,EAAC;MACjBC,MAAM,EAAEL,cAAc;MACtBC,UAAU;MACVK,IAAI,EAAE;QACLC,IAAI,EAAE7B,UAAU,CAACE,OAAO,CAAC4B,cAAc,EAAEC,MAAM,IAAIC,sBAAe;QAClEC,KAAK,EAAEjC,UAAU,CAACE,OAAO,CAAC4B,cAAc,EAAEI,QAAQ,IAAIF;MACvD;IACD,CAAC,CAAC;EACH,CAAC,CAAC,CAAC,CAAC;EAEJ,OAAO,IAAI;AACZ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASG,MAAMA,CAACjB,KAAa,EAAQ;EAC3C,MAAMkB,oBAAoB,GAAG,IAAAC,yCAAsB,EAAC,CAAC;EAErD,IAAI,CAACD,oBAAoB,EAAE;IAC1BhB,cAAM,CAACC,IAAI,CAAC,+CAA+C,CAAC;IAC5D;EACD;EAEAJ,qBAAqB,CAACmB,oBAAoB,CAACpC,UAAU,EAAEkB,KAAK,CAAC;AAC9D","ignoreList":[]}
|
package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js
CHANGED
|
@@ -4,18 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.buildBoundaryMatchKey = buildBoundaryMatchKey;
|
|
7
|
-
function buildBoundaryMatchKey(
|
|
7
|
+
function buildBoundaryMatchKey(params) {
|
|
8
8
|
"worklet";
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} = paramsOrGroup;
|
|
15
|
-
return group ? `${group}:${id}` : String(id);
|
|
16
|
-
}
|
|
17
|
-
const group = paramsOrGroup;
|
|
18
|
-
const id = legacyId;
|
|
10
|
+
const {
|
|
11
|
+
group,
|
|
12
|
+
id
|
|
13
|
+
} = params;
|
|
19
14
|
return group ? `${group}:${id}` : String(id);
|
|
20
15
|
}
|
|
21
16
|
//# sourceMappingURL=build-boundary-match-key.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["buildBoundaryMatchKey","
|
|
1
|
+
{"version":3,"names":["buildBoundaryMatchKey","params","group","id","String"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/utils/build-boundary-match-key.ts"],"mappings":";;;;;;AAUO,SAASA,qBAAqBA,CACpCC,MAAmC,EAC1B;EACT,SAAS;;EACT,MAAM;IAAEC,KAAK;IAAEC;EAAG,CAAC,GAAGF,MAAM;EAC5B,OAAOC,KAAK,GAAG,GAAGA,KAAK,IAAIC,EAAE,EAAE,GAAGC,MAAM,CAACD,EAAE,CAAC;AAC7C","ignoreList":[]}
|
|
@@ -8,7 +8,7 @@ var _visibility = require("../../../utils/overlay/visibility");
|
|
|
8
8
|
/**
|
|
9
9
|
* Find the active float overlay from scenes.
|
|
10
10
|
* Scans from the top of the stack downward to find the first screen
|
|
11
|
-
* with a visible overlay
|
|
11
|
+
* with a visible overlay.
|
|
12
12
|
*/
|
|
13
13
|
function getActiveFloatOverlay(scenes, index, transitionsAlwaysOn) {
|
|
14
14
|
if (scenes.length === 0) {
|
|
@@ -28,7 +28,7 @@ function getActiveFloatOverlay(scenes, index, transitionsAlwaysOn) {
|
|
|
28
28
|
if (!transitionsAlwaysOn && !options?.enableTransitions) {
|
|
29
29
|
continue;
|
|
30
30
|
}
|
|
31
|
-
if ((0, _visibility.
|
|
31
|
+
if ((0, _visibility.isOverlayVisible)(options)) {
|
|
32
32
|
return {
|
|
33
33
|
scene,
|
|
34
34
|
overlayIndex: i
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_visibility","require","getActiveFloatOverlay","scenes","index","transitionsAlwaysOn","length","startIndex","Math","max","i","scene","options","descriptor","enableTransitions","
|
|
1
|
+
{"version":3,"names":["_visibility","require","getActiveFloatOverlay","scenes","index","transitionsAlwaysOn","length","startIndex","Math","max","i","scene","options","descriptor","enableTransitions","isOverlayVisible","overlayIndex"],"sourceRoot":"../../../../../../src","sources":["shared/components/overlay/helpers/get-active-overlay.ts"],"mappings":";;;;;;AACA,IAAAA,WAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACA;AACA;AACO,SAASC,qBAAqBA,CACpCC,MAAoB,EACpBC,KAAa,EACbC,mBAA4B,EACyB;EACrD,IAAIF,MAAM,CAACG,MAAM,KAAK,CAAC,EAAE;IACxB,OAAO,IAAI;EACZ;;EAEA;EACA;EACA;EACA;EACA,MAAMC,UAAU,GAAGC,IAAI,CAACC,GAAG,CAACL,KAAK,EAAED,MAAM,CAACG,MAAM,GAAG,CAAC,CAAC;EAErD,KAAK,IAAII,CAAC,GAAGH,UAAU,EAAEG,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IACrC,MAAMC,KAAK,GAAGR,MAAM,CAACO,CAAC,CAAC;IACvB,MAAME,OAAO,GAAGD,KAAK,EAAEE,UAAU,EAAED,OAAO;;IAE1C;IACA,IAAI,CAACP,mBAAmB,IAAI,CAACO,OAAO,EAAEE,iBAAiB,EAAE;MACxD;IACD;IAEA,IAAI,IAAAC,4BAAgB,EAACH,OAAO,CAAC,EAAE;MAC9B,OAAO;QAAED,KAAK;QAAEK,YAAY,EAAEN;MAAE,CAAC;IAClC;EACD;EAEA,OAAO,IAAI;AACZ","ignoreList":[]}
|
|
@@ -5,9 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.Overlay = void 0;
|
|
7
7
|
var _floatOverlay = require("./variations/float-overlay");
|
|
8
|
-
var _screenOverlay = require("./variations/screen-overlay");
|
|
9
8
|
const Overlay = exports.Overlay = {
|
|
10
|
-
Float: _floatOverlay.FloatOverlay
|
|
11
|
-
Screen: _screenOverlay.ScreenOverlay
|
|
9
|
+
Float: _floatOverlay.FloatOverlay
|
|
12
10
|
};
|
|
13
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_floatOverlay","require","
|
|
1
|
+
{"version":3,"names":["_floatOverlay","require","Overlay","exports","Float","FloatOverlay"],"sourceRoot":"../../../../../src","sources":["shared/components/overlay/index.ts"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAEO,MAAMC,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG;EACtBE,KAAK,EAAEC;AACR,CAAC","ignoreList":[]}
|
|
@@ -8,7 +8,6 @@ var _native = require("@react-navigation/native");
|
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _reactNative = require("react-native");
|
|
10
10
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
11
|
-
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
12
11
|
var _animation = require("../../../providers/screen/animation");
|
|
13
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
13
|
const OverlayHost = exports.OverlayHost = /*#__PURE__*/(0, _react.memo)(function OverlayHost({
|
|
@@ -16,29 +15,16 @@ const OverlayHost = exports.OverlayHost = /*#__PURE__*/(0, _react.memo)(function
|
|
|
16
15
|
overlayScreenState
|
|
17
16
|
}) {
|
|
18
17
|
const OverlayComponent = scene.descriptor.options.overlay;
|
|
19
|
-
const screen = (0, _reactNative.useWindowDimensions)();
|
|
20
|
-
const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
|
|
21
18
|
const screenAnimation = (0, _animation.useScreenAnimation)();
|
|
22
19
|
const relativeProgress = (0, _reactNativeReanimated.useDerivedValue)(() => {
|
|
23
20
|
"worklet";
|
|
24
21
|
|
|
25
22
|
return screenAnimation.value.stackProgress;
|
|
26
23
|
});
|
|
27
|
-
const overlayAnimation = (0, _reactNativeReanimated.useDerivedValue)(() => ({
|
|
28
|
-
progress: relativeProgress.value,
|
|
29
|
-
layouts: {
|
|
30
|
-
screen
|
|
31
|
-
},
|
|
32
|
-
insets
|
|
33
|
-
}));
|
|
34
24
|
const overlayProps = (0, _react.useMemo)(() => ({
|
|
35
25
|
...overlayScreenState,
|
|
36
|
-
progress: relativeProgress
|
|
37
|
-
|
|
38
|
-
overlayAnimation,
|
|
39
|
-
/**@deprecated */
|
|
40
|
-
screenAnimation
|
|
41
|
-
}), [relativeProgress, overlayAnimation, screenAnimation, overlayScreenState]);
|
|
26
|
+
progress: relativeProgress
|
|
27
|
+
}), [relativeProgress, overlayScreenState]);
|
|
42
28
|
if (!OverlayComponent) {
|
|
43
29
|
return null;
|
|
44
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_native","require","_react","_reactNative","_reactNativeReanimated","
|
|
1
|
+
{"version":3,"names":["_native","require","_react","_reactNative","_reactNativeReanimated","_animation","_jsxRuntime","OverlayHost","exports","memo","scene","overlayScreenState","OverlayComponent","descriptor","options","overlay","screenAnimation","useScreenAnimation","relativeProgress","useDerivedValue","value","stackProgress","overlayProps","useMemo","progress","jsx","Animated","View","pointerEvents","style","styles","container","floating","absolute","children","NavigationContext","Provider","navigation","NavigationRouteContext","route","StyleSheet","create","absoluteFillObject","zIndex","flex"],"sourceRoot":"../../../../../../src","sources":["shared/components/overlay/variations/overlay-host.tsx"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAIA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAH,OAAA;AAEA,IAAAI,UAAA,GAAAJ,OAAA;AAAyE,IAAAK,WAAA,GAAAL,OAAA;AAYlE,MAAMM,WAAW,GAAAC,OAAA,CAAAD,WAAA,gBAAG,IAAAE,WAAI,EAAC,SAASF,WAAWA,CAAC;EAC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C,CACyB;IAAC,CACP;EAAC,CACf,CAAC;AAElB,CAAC,CAAC;AAEF,MAAMQ,MAAM,GAAGU,uBAAU,CAACC,MAAM,CAAC;EAChC1B,OAAO,EAAE;IACR,GAAGyB,uBAAU,CAACE,kBAAkB;IAChCC,MAAM,EAAE;EACT,CAAC;EACDZ,SAAS,EAAE;IACVa,IAAI,EAAE;EACP,CAAC;EACDX,QAAQ,EAAEO,uBAAU,CAACE,kBAAkB;EACvCV,QAAQ,EAAE;IACTW,MAAM,EAAE;EACT;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.SceneView = void 0;
|
|
7
7
|
var _native = require("@react-navigation/native");
|
|
8
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _visibility = require("../utils/overlay/visibility");
|
|
10
|
-
var _overlay = require("./overlay");
|
|
11
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
10
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
11
|
/**
|
|
@@ -25,9 +23,9 @@ const SceneView = exports.SceneView = /*#__PURE__*/React.memo(function SceneView
|
|
|
25
23
|
} = descriptor;
|
|
26
24
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_native.NavigationContext.Provider, {
|
|
27
25
|
value: navigation,
|
|
28
|
-
children: /*#__PURE__*/(0, _jsxRuntime.
|
|
26
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_native.NavigationRouteContext.Provider, {
|
|
29
27
|
value: route,
|
|
30
|
-
children:
|
|
28
|
+
children: render?.()
|
|
31
29
|
})
|
|
32
30
|
});
|
|
33
31
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_native","require","React","_interopRequireWildcard","
|
|
1
|
+
{"version":3,"names":["_native","require","React","_interopRequireWildcard","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SceneView","exports","memo","descriptor","route","navigation","render","jsx","NavigationContext","Provider","value","children","NavigationRouteContext"],"sourceRoot":"../../../../src","sources":["shared/components/scene-view.tsx"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAIA,IAAAC,KAAA,GAAAC,uBAAA,CAAAF,OAAA;AAA+B,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAE,wBAAAE,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAJ,uBAAA,YAAAA,CAAAE,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAO/B;AACA;AACA;AACA;AACA;AACO,MAAMkB,SAAS,GAAAC,OAAA,CAAAD,SAAA,gBAAGtB,KAAK,CAACwB,IAAI,CAAC,SAASF,SAASA,CAAC;EACtDG;AACe,CAAC,EAAE;EAClB,MAAM;IAAEC,KAAK;IAAEC,UAAU;IAAEC;EAAO,CAAC,GAAGH,UAAU;EAEhD,oBACC,IAAAvB,WAAA,CAAA2B,GAAA,EAAC/B,OAAA,CAAAgC,iBAAiB,CAACC,QAAQ;IAACC,KAAK,EAAEL,UAAkB;IAAAM,QAAA,eACpD,IAAA/B,WAAA,CAAA2B,GAAA,EAAC/B,OAAA,CAAAoC,sBAAsB,CAACH,QAAQ;MAACC,KAAK,EAAEN,KAAM;MAAAO,QAAA,EAC5CL,MAAM,GAAG;IAAC,CACqB;EAAC,CACP,CAAC;AAE/B,CAAC,CAAC","ignoreList":[]}
|
|
@@ -34,6 +34,9 @@ const BackdropLayer = exports.BackdropLayer = /*#__PURE__*/(0, _react.memo)(func
|
|
|
34
34
|
backdropBehavior
|
|
35
35
|
} = (0, _useBackdropPointerEvents.useBackdropPointerEvents)();
|
|
36
36
|
const BackdropComponent = current.options.backdropComponent;
|
|
37
|
+
const routeKey = current.route.key;
|
|
38
|
+
const animations = _animation.AnimationStore.getRouteAnimations(routeKey);
|
|
39
|
+
const autoSnapPointValue = _animation.AnimationStore.getAnimation(routeKey, "autoSnapPoint");
|
|
37
40
|
const AnimatedBackdropComponent = (0, _react.useMemo)(() => BackdropComponent ? _reactNativeReanimated.default.createAnimatedComponent(BackdropComponent) : null, [BackdropComponent]);
|
|
38
41
|
const handleBackdropPress = (0, _react.useCallback)(() => {
|
|
39
42
|
if (backdropBehavior === "dismiss") {
|
|
@@ -41,24 +44,24 @@ const BackdropLayer = exports.BackdropLayer = /*#__PURE__*/(0, _react.memo)(func
|
|
|
41
44
|
return;
|
|
42
45
|
}
|
|
43
46
|
if (backdropBehavior === "collapse") {
|
|
44
|
-
const
|
|
47
|
+
const rawSnapPoints = current.options.snapPoints;
|
|
45
48
|
const canDismiss = current.options.gestureEnabled !== false;
|
|
46
49
|
|
|
47
50
|
// No snap points → fallback to dismiss
|
|
48
|
-
if (!
|
|
51
|
+
if (!rawSnapPoints || rawSnapPoints.length === 0) {
|
|
49
52
|
dismissScreen();
|
|
50
53
|
return;
|
|
51
54
|
}
|
|
52
|
-
const
|
|
53
|
-
const gestures = _gesture.GestureStore.getRouteGestures(current.route.key);
|
|
55
|
+
const gestures = _gesture.GestureStore.getRouteGestures(routeKey);
|
|
54
56
|
const transitionSpec = current.options.transitionSpec;
|
|
55
57
|
(0, _reactNativeReanimated.runOnUI)(() => {
|
|
56
58
|
"worklet";
|
|
57
59
|
|
|
60
|
+
const resolvedSnaps = rawSnapPoints.map(point => point === "auto" ? autoSnapPointValue.value : point).filter(point => typeof point === "number");
|
|
58
61
|
const {
|
|
59
62
|
target,
|
|
60
63
|
shouldDismiss
|
|
61
|
-
} = (0, _findCollapseTarget.findCollapseTarget)(animations.progress.value,
|
|
64
|
+
} = (0, _findCollapseTarget.findCollapseTarget)(animations.progress.value, resolvedSnaps, canDismiss);
|
|
62
65
|
|
|
63
66
|
// If already dismissing, skip
|
|
64
67
|
if (gestures.dismissing.value) return;
|
|
@@ -75,7 +78,7 @@ const BackdropLayer = exports.BackdropLayer = /*#__PURE__*/(0, _react.memo)(func
|
|
|
75
78
|
});
|
|
76
79
|
})();
|
|
77
80
|
}
|
|
78
|
-
}, [backdropBehavior, current, dismissScreen]);
|
|
81
|
+
}, [animations, autoSnapPointValue, backdropBehavior, current, dismissScreen, routeKey]);
|
|
79
82
|
const animatedBackdropStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
80
83
|
"worklet";
|
|
81
84
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_specs","_constants","_useNavigationHelpers","_descriptors","_styles","_animation","_gesture","_animateToProgress","_findCollapseTarget","_useBackdropPointerEvents","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","BackdropLayer","exports","memo","stylesMap","useScreenStyles","current","useDescriptors","dismissScreen","useNavigationHelpers","isBackdropActive","backdropBehavior","useBackdropPointerEvents","BackdropComponent","options","backdropComponent","AnimatedBackdropComponent","useMemo","Animated","createAnimatedComponent","handleBackdropPress","useCallback","snapPoints","canDismiss","gestureEnabled","length","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_specs","_constants","_useNavigationHelpers","_descriptors","_styles","_animation","_gesture","_animateToProgress","_findCollapseTarget","_useBackdropPointerEvents","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","BackdropLayer","exports","memo","stylesMap","useScreenStyles","current","useDescriptors","dismissScreen","useNavigationHelpers","isBackdropActive","backdropBehavior","useBackdropPointerEvents","BackdropComponent","options","backdropComponent","routeKey","route","key","animations","AnimationStore","getRouteAnimations","autoSnapPointValue","getAnimation","AnimatedBackdropComponent","useMemo","Animated","createAnimatedComponent","handleBackdropPress","useCallback","rawSnapPoints","snapPoints","canDismiss","gestureEnabled","length","gestures","GestureStore","getRouteGestures","transitionSpec","runOnUI","resolvedSnaps","map","point","value","filter","target","shouldDismiss","findCollapseTarget","progress","dismissing","spec","open","expand","DefaultSnapSpec","close","collapse","animateToProgress","onAnimationFinish","undefined","animatedBackdropStyle","useAnimatedStyle","backdrop","style","NO_STYLES","animatedBackdropProps","useAnimatedProps","props","NO_PROPS","jsxs","Pressable","StyleSheet","absoluteFillObject","pointerEvents","onPress","children","jsx","animatedProps","View"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-container/layers/backdrop.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,uBAAA,CAAAH,OAAA;AAKA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AACA,IAAAS,UAAA,GAAAT,OAAA;AACA,IAAAU,QAAA,GAAAV,OAAA;AACA,IAAAW,kBAAA,GAAAX,OAAA;AACA,IAAAY,mBAAA,GAAAZ,OAAA;AACA,IAAAa,yBAAA,GAAAb,OAAA;AAAgF,IAAAc,WAAA,GAAAd,OAAA;AAAA,SAAAG,wBAAAY,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAd,uBAAA,YAAAA,CAAAY,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb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 @@ var _constants = require("../../../constants");
|
|
|
12
12
|
var _gestures = require("../../../providers/gestures");
|
|
13
13
|
var _descriptors = require("../../../providers/screen/descriptors");
|
|
14
14
|
var _styles = require("../../../providers/screen/styles.provider");
|
|
15
|
-
var
|
|
15
|
+
var _animation = require("../../../stores/animation.store");
|
|
16
|
+
var _animateToProgress = require("../../../utils/animation/animate-to-progress");
|
|
16
17
|
var _useBackdropPointerEvents = require("../hooks/use-backdrop-pointer-events");
|
|
18
|
+
var _maybeMaskedNavigationContainer = require("./maybe-masked-navigation-container");
|
|
17
19
|
var _surfaceContainer = require("./surface-container");
|
|
18
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
21
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
20
22
|
/** biome-ignore-all lint/style/noNonNullAssertion: <Screen gesture is under the gesture context, so this will always exist.> */
|
|
21
23
|
|
|
22
|
-
let LazyMaskedView = _reactNative.View;
|
|
23
|
-
try {
|
|
24
|
-
LazyMaskedView = require("@react-native-masked-view/masked-view").default;
|
|
25
|
-
} catch (_) {
|
|
26
|
-
// optional peer dependency
|
|
27
|
-
}
|
|
28
|
-
let hasWarnedMissingMaskedView = false;
|
|
29
24
|
const ContentLayer = exports.ContentLayer = /*#__PURE__*/(0, _react.memo)(({
|
|
30
25
|
children
|
|
31
26
|
}) => {
|
|
@@ -35,15 +30,23 @@ const ContentLayer = exports.ContentLayer = /*#__PURE__*/(0, _react.memo)(({
|
|
|
35
30
|
const {
|
|
36
31
|
current
|
|
37
32
|
} = (0, _descriptors.useDescriptors)();
|
|
33
|
+
const {
|
|
34
|
+
isFirstKey
|
|
35
|
+
} = (0, _descriptors.useDescriptorDerivations)();
|
|
38
36
|
const {
|
|
39
37
|
pointerEvents,
|
|
40
38
|
isBackdropActive
|
|
41
39
|
} = (0, _useBackdropPointerEvents.useBackdropPointerEvents)();
|
|
42
40
|
const gestureContext = (0, _gestures.useGestureContext)();
|
|
41
|
+
const {
|
|
42
|
+
height: screenHeight
|
|
43
|
+
} = (0, _reactNative.useWindowDimensions)();
|
|
43
44
|
const isNavigationMaskEnabled = !!current.options.maskEnabled;
|
|
44
45
|
const contentPointerEvents = isBackdropActive ? "box-none" : pointerEvents;
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
const routeKey = current.route.key;
|
|
47
|
+
const animations = _animation.AnimationStore.getRouteAnimations(routeKey);
|
|
48
|
+
const autoSnapPointValue = _animation.AnimationStore.getAnimation(routeKey, "autoSnapPoint");
|
|
49
|
+
const hasAutoSnapPoint = current.options.snapPoints?.includes("auto") ?? false;
|
|
47
50
|
const animatedContentStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
48
51
|
"worklet";
|
|
49
52
|
|
|
@@ -54,49 +57,47 @@ const ContentLayer = exports.ContentLayer = /*#__PURE__*/(0, _react.memo)(({
|
|
|
54
57
|
|
|
55
58
|
return stylesMap.value.content?.props ?? _constants.NO_PROPS;
|
|
56
59
|
});
|
|
60
|
+
const handleContentLayout = (0, _react.useCallback)(event => {
|
|
61
|
+
const contentHeight = event.nativeEvent.layout.height;
|
|
62
|
+
if (contentHeight <= 0) return;
|
|
63
|
+
const fraction = Math.min(contentHeight / screenHeight, 1);
|
|
64
|
+
const transitionSpec = current.options.transitionSpec;
|
|
65
|
+
(0, _reactNativeReanimated.runOnUI)((nextFraction, isInitialScreen, spec) => {
|
|
66
|
+
"worklet";
|
|
57
67
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}, [isNavigationMaskEnabled]);
|
|
76
|
-
const contentChildren = isNavigationMaskEnabled ? LazyMaskedView !== _reactNative.View ? /*#__PURE__*/(0, _jsxRuntime.jsx)(LazyMaskedView, {
|
|
77
|
-
style: styles.navigationMaskedRoot
|
|
78
|
-
// @ts-expect-error masked-view package types are too strict here
|
|
79
|
-
,
|
|
80
|
-
maskElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
81
|
-
style: [styles.navigationMaskElement, animatedNavigationMaskStyle]
|
|
82
|
-
}),
|
|
83
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
84
|
-
style: [styles.navigationContainer, animatedNavigationContainerStyle],
|
|
85
|
-
children: children
|
|
86
|
-
})
|
|
87
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
88
|
-
style: [styles.navigationContainer, animatedNavigationContainerStyle],
|
|
89
|
-
children: children
|
|
90
|
-
}) : children;
|
|
68
|
+
const isFirstMeasurement = autoSnapPointValue.value <= 0;
|
|
69
|
+
autoSnapPointValue.value = nextFraction;
|
|
70
|
+
if (!isFirstMeasurement || animations.progress.value !== 0 || animations.animating.value !== 0) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
if (isInitialScreen) {
|
|
74
|
+
animations.targetProgress.value = nextFraction;
|
|
75
|
+
animations.progress.value = nextFraction;
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
(0, _animateToProgress.animateToProgress)({
|
|
79
|
+
target: nextFraction,
|
|
80
|
+
spec,
|
|
81
|
+
animations
|
|
82
|
+
});
|
|
83
|
+
})(fraction, isFirstKey, transitionSpec);
|
|
84
|
+
}, [animations, autoSnapPointValue, current.options.transitionSpec, isFirstKey, screenHeight]);
|
|
91
85
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeGestureHandler.GestureDetector, {
|
|
92
86
|
gesture: gestureContext.panGesture,
|
|
93
87
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
94
88
|
style: [styles.content, animatedContentStyle],
|
|
95
89
|
animatedProps: animatedContentProps,
|
|
96
90
|
pointerEvents: contentPointerEvents,
|
|
97
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
98
|
-
|
|
99
|
-
children:
|
|
91
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_maybeMaskedNavigationContainer.MaybeMaskedNavigationContainer, {
|
|
92
|
+
enabled: isNavigationMaskEnabled,
|
|
93
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_surfaceContainer.SurfaceContainer, {
|
|
94
|
+
pointerEvents: contentPointerEvents,
|
|
95
|
+
children: hasAutoSnapPoint ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
96
|
+
collapsable: false,
|
|
97
|
+
onLayout: handleContentLayout,
|
|
98
|
+
children: children
|
|
99
|
+
}) : children
|
|
100
|
+
})
|
|
100
101
|
})
|
|
101
102
|
})
|
|
102
103
|
});
|
|
@@ -104,15 +105,6 @@ const ContentLayer = exports.ContentLayer = /*#__PURE__*/(0, _react.memo)(({
|
|
|
104
105
|
const styles = _reactNative.StyleSheet.create({
|
|
105
106
|
content: {
|
|
106
107
|
flex: 1
|
|
107
|
-
},
|
|
108
|
-
navigationMaskedRoot: {
|
|
109
|
-
flex: 1
|
|
110
|
-
},
|
|
111
|
-
navigationMaskElement: {
|
|
112
|
-
backgroundColor: "white"
|
|
113
|
-
},
|
|
114
|
-
navigationContainer: {
|
|
115
|
-
flex: 1
|
|
116
108
|
}
|
|
117
109
|
});
|
|
118
110
|
//# sourceMappingURL=content.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_reactNativeGestureHandler","_reactNativeReanimated","_interopRequireWildcard","_constants","_gestures","_descriptors","_styles","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeGestureHandler","_reactNativeReanimated","_interopRequireWildcard","_constants","_gestures","_descriptors","_styles","_animation","_animateToProgress","_useBackdropPointerEvents","_maybeMaskedNavigationContainer","_surfaceContainer","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ContentLayer","exports","memo","children","stylesMap","useScreenStyles","current","useDescriptors","isFirstKey","useDescriptorDerivations","pointerEvents","isBackdropActive","useBackdropPointerEvents","gestureContext","useGestureContext","height","screenHeight","useWindowDimensions","isNavigationMaskEnabled","options","maskEnabled","contentPointerEvents","routeKey","route","key","animations","AnimationStore","getRouteAnimations","autoSnapPointValue","getAnimation","hasAutoSnapPoint","snapPoints","includes","animatedContentStyle","useAnimatedStyle","value","content","style","NO_STYLES","animatedContentProps","useAnimatedProps","props","NO_PROPS","handleContentLayout","useCallback","event","contentHeight","nativeEvent","layout","fraction","Math","min","transitionSpec","runOnUI","nextFraction","isInitialScreen","spec","isFirstMeasurement","progress","animating","targetProgress","animateToProgress","target","jsx","GestureDetector","gesture","panGesture","View","styles","animatedProps","MaybeMaskedNavigationContainer","enabled","SurfaceContainer","collapsable","onLayout","StyleSheet","create","flex"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-container/layers/content.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,0BAAA,GAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAC,uBAAA,CAAAJ,OAAA;AAKA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AAC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