react-native-screen-transitions 3.4.0-alpha.1 → 3.4.0-alpha.2
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 +11 -1109
- package/lib/commonjs/blank-stack/navigators/create-blank-stack-navigator.js +69 -2
- package/lib/commonjs/blank-stack/navigators/create-blank-stack-navigator.js.map +1 -1
- package/lib/commonjs/component-stack/navigators/create-component-stack-navigator.js +9 -0
- package/lib/commonjs/component-stack/navigators/create-component-stack-navigator.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +195 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -14
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +19 -18
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +54 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +40 -8
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +72 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +16 -7
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +7 -4
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +14 -15
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +27 -9
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/index.js +22 -8
- package/lib/commonjs/shared/components/create-boundary-component/index.js.map +1 -1
- package/lib/commonjs/shared/components/create-transition-aware-component.js +3 -2
- package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/commonjs/shared/components/native-screen-container.js +12 -6
- package/lib/commonjs/shared/components/native-screen-container.js.map +1 -1
- package/lib/commonjs/shared/components/native-screen.js +35 -8
- package/lib/commonjs/shared/components/native-screen.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js +60 -0
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js.map +1 -0
- package/lib/commonjs/shared/components/screen-container/layers/content.js +5 -37
- 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 +21 -12
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js +6 -7
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.js +11 -6
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.js.map +1 -1
- package/lib/commonjs/shared/providers/layout-anchor.provider.js +4 -6
- package/lib/commonjs/shared/providers/layout-anchor.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +14 -7
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/core.provider.js +14 -21
- package/lib/commonjs/shared/providers/stack/core.provider.js.map +1 -1
- package/lib/commonjs/shared/stores/animation.store.js +3 -1
- package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/presence.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js +14 -5
- package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js +0 -5
- package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/index.js +10 -0
- package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/types/frame-props.js +6 -0
- package/lib/commonjs/shared/utils/bounds/types/frame-props.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/zoom/build.js +33 -26
- package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -1
- package/lib/commonjs/shared/utils/resolve-screen-transition-options.js +25 -0
- package/lib/commonjs/shared/utils/resolve-screen-transition-options.js.map +1 -0
- package/lib/module/blank-stack/navigators/create-blank-stack-navigator.js +69 -3
- package/lib/module/blank-stack/navigators/create-blank-stack-navigator.js.map +1 -1
- package/lib/module/component-stack/navigators/create-component-stack-navigator.js +9 -0
- package/lib/module/component-stack/navigators/create-component-stack-navigator.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +182 -0
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -14
- package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +19 -18
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +49 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +41 -8
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +67 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +16 -7
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +7 -4
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +14 -15
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +27 -9
- package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/index.js +22 -8
- package/lib/module/shared/components/create-boundary-component/index.js.map +1 -1
- package/lib/module/shared/components/create-transition-aware-component.js +3 -2
- package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/module/shared/components/native-screen-container.js +12 -6
- package/lib/module/shared/components/native-screen-container.js.map +1 -1
- package/lib/module/shared/components/native-screen.js +35 -8
- package/lib/module/shared/components/native-screen.js.map +1 -1
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +56 -0
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -0
- package/lib/module/shared/components/screen-container/layers/content.js +9 -41
- 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 +22 -13
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js +6 -7
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-activation.js +11 -6
- package/lib/module/shared/providers/gestures/helpers/gesture-activation.js.map +1 -1
- package/lib/module/shared/providers/layout-anchor.provider.js +4 -6
- package/lib/module/shared/providers/layout-anchor.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +14 -7
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/module/shared/providers/stack/core.provider.js +14 -21
- package/lib/module/shared/providers/stack/core.provider.js.map +1 -1
- package/lib/module/shared/stores/animation.store.js +3 -1
- package/lib/module/shared/stores/animation.store.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/presence.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js +14 -5
- package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js +0 -5
- package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js.map +1 -1
- package/lib/module/shared/utils/bounds/index.js +10 -0
- package/lib/module/shared/utils/bounds/index.js.map +1 -1
- package/lib/module/shared/utils/bounds/types/frame-props.js +4 -0
- package/lib/module/shared/utils/bounds/types/frame-props.js.map +1 -0
- package/lib/module/shared/utils/bounds/zoom/build.js +33 -26
- package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -1
- package/lib/module/shared/utils/resolve-screen-transition-options.js +19 -0
- package/lib/module/shared/utils/resolve-screen-transition-options.js.map +1 -0
- package/lib/typescript/blank-stack/index.d.ts +1 -1
- package/lib/typescript/blank-stack/index.d.ts.map +1 -1
- package/lib/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts +29 -4
- package/lib/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts.map +1 -1
- package/lib/typescript/blank-stack/types.d.ts +33 -4
- package/lib/typescript/blank-stack/types.d.ts.map +1 -1
- package/lib/typescript/component-stack/navigators/create-component-stack-navigator.d.ts +8 -0
- package/lib/typescript/component-stack/navigators/create-component-stack-navigator.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +81 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts +2 -3
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts +11 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts +2 -2
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts +11 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts +3 -3
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts +2 -2
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts +5 -3
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts +2 -4
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts +1 -0
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/native-screen-container.d.ts.map +1 -1
- package/lib/typescript/shared/components/native-screen.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/hooks/use-content-layout.d.ts +3 -0
- package/lib/typescript/shared/components/screen-container/hooks/use-content-layout.d.ts.map +1 -0
- 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 +3 -1
- package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +0 -1
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts +1 -1
- package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +1 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-activation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/layout-anchor.provider.d.ts +1 -1
- package/lib/typescript/shared/providers/layout-anchor.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
- package/lib/typescript/shared/providers/stack/core.provider.d.ts +2 -0
- package/lib/typescript/shared/providers/stack/core.provider.d.ts.map +1 -1
- package/lib/typescript/shared/stores/animation.store.d.ts +5 -3
- package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/presence.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +7 -0
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/screen.types.d.ts +46 -22
- package/lib/typescript/shared/types/screen.types.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/resolve-bound-tag.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/index.d.ts +2 -2
- package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/types/frame-props.d.ts +5 -0
- package/lib/typescript/shared/utils/bounds/types/frame-props.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/zoom/accessor.d.ts +4 -4
- package/lib/typescript/shared/utils/bounds/zoom/accessor.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/types.d.ts +3 -3
- package/lib/typescript/shared/utils/bounds/zoom/types.d.ts.map +1 -1
- package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts +5 -0
- package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts.map +1 -0
- package/package.json +2 -1
- package/src/blank-stack/index.ts +1 -0
- package/src/blank-stack/navigators/create-blank-stack-navigator.tsx +138 -19
- package/src/blank-stack/types.ts +33 -5
- package/src/component-stack/navigators/create-component-stack-navigator.tsx +8 -0
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +258 -0
- package/src/shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts +7 -17
- package/src/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts +38 -28
- package/src/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.ts +58 -0
- package/src/shared/components/create-boundary-component/hooks/use-group-active-measurement.ts +41 -10
- package/src/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.ts +82 -0
- package/src/shared/components/create-boundary-component/hooks/use-initial-layout-handler.ts +24 -12
- package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +11 -9
- package/src/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.ts +29 -26
- package/src/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.ts +26 -17
- package/src/shared/components/create-boundary-component/index.tsx +25 -6
- package/src/shared/components/create-boundary-component/types.ts +8 -4
- package/src/shared/components/create-transition-aware-component.tsx +5 -2
- package/src/shared/components/native-screen-container.tsx +11 -3
- package/src/shared/components/native-screen.tsx +65 -20
- package/src/shared/components/screen-container/hooks/use-content-layout.ts +82 -0
- package/src/shared/components/screen-container/layers/content.tsx +11 -73
- package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +24 -16
- package/src/shared/providers/gestures/handlers/use-handlers.ts +8 -5
- package/src/shared/providers/gestures/helpers/gesture-activation.ts +11 -6
- package/src/shared/providers/layout-anchor.provider.tsx +2 -5
- package/src/shared/providers/register-bounds.provider.tsx +1 -1
- package/src/shared/providers/screen/animation/helpers/pipeline.ts +24 -8
- package/src/shared/providers/stack/core.provider.tsx +27 -14
- package/src/shared/stores/animation.store.ts +11 -7
- package/src/shared/stores/bounds/internals/presence.ts +3 -1
- package/src/shared/types/animation.types.ts +7 -0
- package/src/shared/types/screen.types.ts +50 -22
- package/src/shared/utils/bounds/helpers/compute-bounds-styles.ts +14 -1
- package/src/shared/utils/bounds/helpers/resolve-bound-tag.ts +0 -6
- package/src/shared/utils/bounds/index.ts +16 -5
- package/src/shared/utils/bounds/types/frame-props.ts +5 -0
- package/src/shared/utils/bounds/zoom/accessor.ts +3 -3
- package/src/shared/utils/bounds/zoom/build.ts +32 -22
- package/src/shared/utils/bounds/zoom/types.ts +3 -3
- package/src/shared/utils/resolve-screen-transition-options.ts +37 -0
- package/lib/commonjs/shared/providers/viewport.provider.js +0 -33
- package/lib/commonjs/shared/providers/viewport.provider.js.map +0 -1
- package/lib/module/shared/providers/viewport.provider.js +0 -27
- package/lib/module/shared/providers/viewport.provider.js.map +0 -1
- package/lib/typescript/shared/providers/viewport.provider.d.ts +0 -13
- package/lib/typescript/shared/providers/viewport.provider.d.ts.map +0 -1
- package/src/shared/providers/viewport.provider.tsx +0 -39
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useLayoutAnchorContext = exports.LayoutAnchorProvider = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
8
9
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
9
10
|
var _createProvider = _interopRequireDefault(require("../utils/create-provider"));
|
|
10
|
-
var _viewport = require("./viewport.provider");
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
12
|
/**
|
|
13
13
|
* Provides a reference point for correcting bounds measurements.
|
|
@@ -34,11 +34,9 @@ const {
|
|
|
34
34
|
children
|
|
35
35
|
}) => {
|
|
36
36
|
const {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
} = (0, _viewport.useViewportContext)();
|
|
37
|
+
width: screenWidth,
|
|
38
|
+
height: screenHeight
|
|
39
|
+
} = (0, _reactNative.useWindowDimensions)();
|
|
42
40
|
const correctMeasurement = (0, _react.useCallback)(measured => {
|
|
43
41
|
"worklet";
|
|
44
42
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeReanimated","_createProvider","_interopRequireDefault","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_createProvider","_interopRequireDefault","e","__esModule","default","LayoutAnchorProvider","useLayoutAnchorContext","createProvider","guarded","anchorRef","children","width","screenWidth","height","screenHeight","useWindowDimensions","correctMeasurement","useCallback","measured","anchor","measure","scaleX","scaleY","relativeX","pageX","relativeY","pageY","x","y","isMeasurementInViewport","toleranceX","toleranceY","centerX","centerY","value","useMemo","exports"],"sourceRoot":"../../../../src","sources":["shared/providers/layout-anchor.provider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,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uB,CAC7C,CAAC;EAED,OAAO;IACNK,KAAK;IACLxB;EACD,CAAC;AACF,CACD,CAAC;AAAC0B,OAAA,CAAA9B,sBAAA,GAAAA,sBAAA;AAAA8B,OAAA,CAAA/B,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -5,13 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useScreenAnimationPipeline = useScreenAnimationPipeline;
|
|
7
7
|
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
8
9
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
10
|
+
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
9
11
|
var _constants = require("../../../../constants");
|
|
10
12
|
var _useStack = require("../../../../hooks/navigation/use-stack");
|
|
11
13
|
var _animation = require("../../../../stores/animation.store");
|
|
12
14
|
var _gesture = require("../../../../stores/gesture.store");
|
|
13
15
|
var _bounds = require("../../../../utils/bounds");
|
|
14
|
-
var
|
|
16
|
+
var _resolveScreenTransitionOptions = require("../../../../utils/resolve-screen-transition-options");
|
|
15
17
|
var _descriptors = require("../../descriptors");
|
|
16
18
|
var _derivations = require("./derivations");
|
|
17
19
|
var _worklet = require("./worklet");
|
|
@@ -91,10 +93,8 @@ function useScreenAnimationPipeline() {
|
|
|
91
93
|
stackProgress: rootStackProgress,
|
|
92
94
|
routeKeys
|
|
93
95
|
} = (0, _useStack.useStack)();
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
insets
|
|
97
|
-
} = (0, _viewport.useViewportContext)();
|
|
96
|
+
const dimensions = (0, _reactNative.useWindowDimensions)();
|
|
97
|
+
const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
|
|
98
98
|
const transitionsAlwaysOn = flags.TRANSITIONS_ALWAYS_ON;
|
|
99
99
|
const {
|
|
100
100
|
current: currentDescriptor,
|
|
@@ -113,8 +113,10 @@ function useScreenAnimationPipeline() {
|
|
|
113
113
|
}, [currentDescriptor?.options?.snapPoints]);
|
|
114
114
|
const hasAutoSnapPoint = (0, _react.useMemo)(() => currentDescriptor?.options?.snapPoints?.includes("auto") ?? false, [currentDescriptor?.options?.snapPoints]);
|
|
115
115
|
const autoSnapPointValue = _animation.AnimationStore.getAnimation(currentRouteKey ?? "_", "autoSnapPoint");
|
|
116
|
+
const contentLayoutValue = _animation.AnimationStore.getAnimation(currentRouteKey ?? "_", "contentLayout");
|
|
116
117
|
const nextRouteKey = nextDescriptor?.route?.key;
|
|
117
118
|
const nextHasTransitions = !!nextRouteKey && hasTransitionsEnabled(nextDescriptor?.options, transitionsAlwaysOn);
|
|
119
|
+
const currentNavigationMaskEnabled = (0, _resolveScreenTransitionOptions.resolveNavigationMaskEnabled)(currentDescriptor?.options ?? {});
|
|
118
120
|
const framePropsMutable = (0, _reactNativeReanimated.useSharedValue)({
|
|
119
121
|
layouts: {
|
|
120
122
|
screen: dimensions
|
|
@@ -126,6 +128,7 @@ function useScreenAnimationPipeline() {
|
|
|
126
128
|
progress: 0,
|
|
127
129
|
stackProgress: 0,
|
|
128
130
|
snapIndex: -1,
|
|
131
|
+
navigationMaskEnabled: false,
|
|
129
132
|
focused: true,
|
|
130
133
|
active: _constants.DEFAULT_SCREEN_TRANSITION_STATE,
|
|
131
134
|
inactive: undefined
|
|
@@ -163,7 +166,8 @@ function useScreenAnimationPipeline() {
|
|
|
163
166
|
const snapIndex = computeSnapIndex(current.progress, resolvedSnapPoints);
|
|
164
167
|
const nextProps = {
|
|
165
168
|
layouts: {
|
|
166
|
-
screen: dimensions
|
|
169
|
+
screen: dimensions,
|
|
170
|
+
content: contentLayoutValue.value ?? undefined
|
|
167
171
|
},
|
|
168
172
|
insets,
|
|
169
173
|
previous,
|
|
@@ -174,7 +178,10 @@ function useScreenAnimationPipeline() {
|
|
|
174
178
|
snapIndex,
|
|
175
179
|
...helpers
|
|
176
180
|
};
|
|
177
|
-
framePropsMutable.value =
|
|
181
|
+
framePropsMutable.value = {
|
|
182
|
+
...nextProps,
|
|
183
|
+
navigationMaskEnabled: currentNavigationMaskEnabled
|
|
184
|
+
};
|
|
178
185
|
return nextProps;
|
|
179
186
|
});
|
|
180
187
|
const nextInterpolator = nextDescriptor?.options.screenStyleInterpolator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeReanimated","_constants","_useStack","_animation","_gesture","_bounds","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_reactNativeSafeAreaContext","_constants","_useStack","_animation","_gesture","_bounds","_resolveScreenTransitionOptions","_descriptors","_derivations","_worklet","computeSnapIndex","progress","snapPoints","length","i","t","unwrapInto","s","out","unwrapped","value","closing","entering","animating","gesture","x","y","normX","normY","dismissing","dragging","direction","normalizedX","normalizedY","isDismissing","isDragging","settled","meta","useBuildScreenTransitionState","descriptor","slot","key","route","options","gestureEnabled","shouldUseNeutralNextGestures","useMemo","undefined","plainRoute","toPlainRoute","plainMeta","toPlainValue","AnimationStore","getRouteAnimation","GestureStore","peekRouteGestures","getNeutralGestures","getRouteGestures","createScreenTransitionState","hasTransitionsEnabled","alwaysOn","enableTransitions","useScreenAnimationPipeline","flags","stackProgress","rootStackProgress","routeKeys","useStack","dimensions","useWindowDimensions","insets","useSafeAreaInsets","transitionsAlwaysOn","TRANSITIONS_ALWAYS_ON","current","currentDescriptor","next","nextDescriptor","previous","previousDescriptor","useDescriptors","currentAnimation","nextAnimation","prevAnimation","currentRouteKey","currentIndex","indexOf","sortedNumericSnapPoints","points","filter","p","sort","a","b","hasAutoSnapPoint","includes","autoSnapPointValue","getAnimation","contentLayoutValue","nextRouteKey","nextHasTransitions","currentNavigationMaskEnabled","resolveNavigationMaskEnabled","framePropsMutable","useSharedValue","layouts","screen","DEFAULT_SCREEN_TRANSITION_STATE","snapIndex","navigationMaskEnabled","focused","active","inactive","boundsAccessor","createBoundsAccessor","screenInterpolatorProps","useDerivedValue","helpers","derivations","resolvedAutoSnap","resolvedSnapPoints","nextProps","content","nextInterpolator","screenStyleInterpolator","currentInterpolator"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/pipeline.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AAMA,IAAAG,2BAAA,GAAAH,OAAA;AAEA,IAAAI,UAAA,GAAAJ,OAAA;AAIA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;AAYA,IAAAQ,OAAA,GAAAR,OAAA;AAEA,IAAAS,+BAAA,GAAAT,OAAA;AACA,IAAAU,YAAA,GAAAV,OAAA;AACA,IAAAW,YAAA,GAAAX,OAAA;AACA,IAAAY,QAAA,GAAAZ,OAAA;AAsBA;AACA;AACA;AACA;AACA,MAAMa,gBAAgB,GAAGA,CAACC,QAAgB,EAAEC,UAAoB,KAAa;EAC5E,SAAS;;EACT,IAAIA,UAAU,CAACC,MAAM,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;EACtC,IAAIF,QAAQ,IAAIC,UAAU,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC;EACvC,IAAID,QAAQ,IAAIC,UAAU,CAACA,UAAU,CAACC,MAAM,GAAG,CAAC,CAAC,EAChD,OAAOD,UAAU,CAACC,MAAM,GAAG,CAAC;EAE7B,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,UAAU,CAACC,MAAM,GAAG,CAAC,EAAEC,CAAC,EAAE,EAAE;IAC/C,IAAIH,QAAQ,IAAIC,UAAU,CAACE,CAAC,GAAG,CAAC,CAAC,EAAE;MAClC,MAAMC,CAAC,GACN,CAACJ,QAAQ,GAAGC,UAAU,CAACE,CAAC,CAAC,KAAKF,UAAU,CAACE,CAAC,GAAG,CAAC,CAAC,GAAGF,UAAU,CAACE,CAAC,CAAC,CAAC;MACjE,OAA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ler = require("react-native-gesture-handler");
|
|
12
12
|
var _stack = require("../../types/stack.types");
|
|
13
13
|
var _createProvider = _interopRequireDefault(require("../../utils/create-provider"));
|
|
14
|
-
var _viewport = require("../viewport.provider");
|
|
15
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
16
|
const {
|
|
@@ -26,25 +25,24 @@ const {
|
|
|
26
25
|
const {
|
|
27
26
|
TRANSITIONS_ALWAYS_ON = false,
|
|
28
27
|
DISABLE_NATIVE_SCREENS = false,
|
|
28
|
+
DISABLE_NATIVE_SCREEN_CONTAINER = false,
|
|
29
29
|
STACK_TYPE = _stack.StackType.BLANK
|
|
30
30
|
} = config;
|
|
31
31
|
const flags = (0, _react.useMemo)(() => ({
|
|
32
32
|
TRANSITIONS_ALWAYS_ON,
|
|
33
33
|
STACK_TYPE,
|
|
34
|
-
DISABLE_NATIVE_SCREENS
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
flags
|
|
38
|
-
}), [flags]);
|
|
34
|
+
DISABLE_NATIVE_SCREENS,
|
|
35
|
+
DISABLE_NATIVE_SCREEN_CONTAINER
|
|
36
|
+
}), [TRANSITIONS_ALWAYS_ON, STACK_TYPE, DISABLE_NATIVE_SCREENS, DISABLE_NATIVE_SCREEN_CONTAINER]);
|
|
39
37
|
return {
|
|
40
|
-
value
|
|
38
|
+
value: {
|
|
39
|
+
flags
|
|
40
|
+
},
|
|
41
41
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeGestureHandler.GestureHandlerRootView, {
|
|
42
42
|
style: styles.container,
|
|
43
43
|
pointerEvents: STACK_TYPE === _stack.StackType.COMPONENT ? "box-none" : undefined,
|
|
44
44
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_elements.SafeAreaProviderCompat, {
|
|
45
|
-
children:
|
|
46
|
-
children: children
|
|
47
|
-
})
|
|
45
|
+
children: children
|
|
48
46
|
})
|
|
49
47
|
})
|
|
50
48
|
};
|
|
@@ -58,22 +56,17 @@ exports.useStackCoreContext = useStackCoreContext;
|
|
|
58
56
|
function withStackCore(defaultConfig, Component) {
|
|
59
57
|
return function StackCoreWrapper({
|
|
60
58
|
DISABLE_NATIVE_SCREENS,
|
|
59
|
+
DISABLE_NATIVE_SCREEN_CONTAINER,
|
|
61
60
|
TRANSITIONS_ALWAYS_ON,
|
|
62
61
|
STACK_TYPE,
|
|
63
62
|
...props
|
|
64
63
|
}) {
|
|
65
|
-
//
|
|
64
|
+
// Start from defaults, then apply explicit overrides from the caller.
|
|
66
65
|
const config = {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
TRANSITIONS_ALWAYS_ON
|
|
72
|
-
}),
|
|
73
|
-
...(STACK_TYPE !== undefined && {
|
|
74
|
-
STACK_TYPE
|
|
75
|
-
}),
|
|
76
|
-
...defaultConfig
|
|
66
|
+
TRANSITIONS_ALWAYS_ON: TRANSITIONS_ALWAYS_ON ?? defaultConfig.TRANSITIONS_ALWAYS_ON,
|
|
67
|
+
STACK_TYPE: STACK_TYPE ?? defaultConfig.STACK_TYPE,
|
|
68
|
+
DISABLE_NATIVE_SCREENS: DISABLE_NATIVE_SCREENS ?? defaultConfig.DISABLE_NATIVE_SCREENS,
|
|
69
|
+
DISABLE_NATIVE_SCREEN_CONTAINER: DISABLE_NATIVE_SCREEN_CONTAINER ?? defaultConfig.DISABLE_NATIVE_SCREEN_CONTAINER
|
|
77
70
|
};
|
|
78
71
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(InternalStackCoreProvider, {
|
|
79
72
|
config: config,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_elements","require","_react","_reactNative","_reactNativeGestureHandler","_stack","_createProvider","_interopRequireDefault","
|
|
1
|
+
{"version":3,"names":["_elements","require","_react","_reactNative","_reactNativeGestureHandler","_stack","_createProvider","_interopRequireDefault","_jsxRuntime","e","__esModule","default","StackCoreProvider","InternalStackCoreProvider","useStackCoreContext","createProvider","guarded","config","children","TRANSITIONS_ALWAYS_ON","DISABLE_NATIVE_SCREENS","DISABLE_NATIVE_SCREEN_CONTAINER","STACK_TYPE","StackType","BLANK","flags","useMemo","value","jsx","GestureHandlerRootView","style","styles","container","pointerEvents","COMPONENT","undefined","SafeAreaProviderCompat","exports","withStackCore","defaultConfig","Component","StackCoreWrapper","props","StyleSheet","create","flex"],"sourceRoot":"../../../../../src","sources":["shared/providers/stack/core.provider.tsx"],"mappings":";;;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,0BAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,eAAA,GAAAC,sBAAA,CAAAN,OAAA;AAAyD,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAM,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAuBzD,MAAM;EAAEG,iBAAiB,EAAEC,yBAAyB;EAAEC;AAAoB,CAAC,GAC1E,IAAAC,uBAAc,EAAC,WAAW,EAAE;EAAEC,OAAO,EAAE;AAAK,CAAC,CAAC,CAG5C,CAAC;EAAEC,MAAM;EAAEC;AAAS,CAAC,KAAK;EAC3B,MAAM;IACLC,qBAAqB,GAAG,KAAK;IAC7BC,sBAAsB,GAAG,KAAK;IAC9BC,+BAA+B,GAAG,KAAK;IACvCC,UAAU,GAAGC,gBAAS,CAACC;EACxB,CAAC,GAAGP,MAAM;EAEV,MAAMQ,KAAK,GAAG,IAAAC,cAAO,EACpB,OAAO;IACNP,qBAAqB;IACrBG,UAAU;IACVF,sBAAsB;IACtBC;EACD,CAAC,CAAC,EACF,CACCF,qBAAqB,EACrBG,UAAU,EACVF,sBAAsB,EACtBC,+BAA+B,CAEjC,CAAC;EA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CAAC","ignoreList":[]}
|
|
@@ -13,7 +13,8 @@ function createAnimationBag() {
|
|
|
13
13
|
animating: (0, _reactNativeReanimated.makeMutable)(0),
|
|
14
14
|
entering: (0, _reactNativeReanimated.makeMutable)(0),
|
|
15
15
|
targetProgress: (0, _reactNativeReanimated.makeMutable)(1),
|
|
16
|
-
autoSnapPoint: (0, _reactNativeReanimated.makeMutable)(-1)
|
|
16
|
+
autoSnapPoint: (0, _reactNativeReanimated.makeMutable)(-1),
|
|
17
|
+
contentLayout: (0, _reactNativeReanimated.makeMutable)(null)
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
20
|
function ensure(routeKey) {
|
|
@@ -45,6 +46,7 @@ function clear(routeKey) {
|
|
|
45
46
|
(0, _reactNativeReanimated.cancelAnimation)(bag.entering);
|
|
46
47
|
(0, _reactNativeReanimated.cancelAnimation)(bag.targetProgress);
|
|
47
48
|
(0, _reactNativeReanimated.cancelAnimation)(bag.autoSnapPoint);
|
|
49
|
+
(0, _reactNativeReanimated.cancelAnimation)(bag.contentLayout);
|
|
48
50
|
}
|
|
49
51
|
delete store[routeKey];
|
|
50
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","store","createAnimationBag","progress","makeMutable","closing","animating","entering","targetProgress","autoSnapPoint","ensure","routeKey","bag","peekRouteAnimations","getRouteAnimation","type","getAnimation","getRouteAnimations","clear","cancelAnimation","AnimationStore","exports"],"sourceRoot":"../../../../src","sources":["shared/stores/animation.store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","store","createAnimationBag","progress","makeMutable","closing","animating","entering","targetProgress","autoSnapPoint","contentLayout","ensure","routeKey","bag","peekRouteAnimations","getRouteAnimation","type","getAnimation","getRouteAnimations","clear","cancelAnimation","AnimationStore","exports"],"sourceRoot":"../../../../src","sources":["shared/stores/animation.store.ts"],"mappings":";;;;;;AAAA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CAAC;EAC3B,IAAIC,GAAG,EAAE;IACR,IAAAO,sCAAe,EAACP,GAAG,CAACV,QAAQ,CAAC;IAC7B,IAAAiB,sCAAe,EAACP,GAAG,CAACP,SAAS,CAAC;IAC9B,IAAAc,sCAAe,EAACP,GAAG,CAACR,OAAO,CAAC;IAC5B,IAAAe,sCAAe,EAACP,GAAG,CAACN,QAAQ,CAAC;IAC7B,IAAAa,sCAAe,EAACP,GAAG,CAACL,cAAc,CAAC;IACnC,IAAAY,sCAAe,EAACP,GAAG,CAACJ,aAAa,CAAC;IAClC,IAAAW,sCAAe,EAACP,GAAG,CAACH,aAAa,CAAC;EACnC;EACA,OAAOT,KAAK,CAACW,QAAQ,CAAC;AACvB;AAEO,MAAMS,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG;EAC7BJ,YAAY;EACZH,mBAAmB;EACnBC,iBAAiB;EACjBG,kBAAkB;EAClBC;AACD,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_state","require","registerBoundaryPresence","tag","screenKey","ancestorKeys","boundaryConfig","navigatorKey","ancestorNavigatorKeys","presence","modify","state","mutableState","tagEntries","currentEntry","count","debugStoreSizeLog","unregisterBoundaryPresence","value","mutableTagEntries","mutableEntry","nextCount","_remainingKey","hasBoundaryPresence","direct","entryScreenKey","entry","includes","getBoundaryPresence","getBoundaryConfig","setGroupActiveId","group","id","groups","activeId","getGroupActiveId","getGroups"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/presence.ts"],"mappings":";;;;;;;;;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEA,SAASC,wBAAwBA,CAChCC,GAAU,EACVC,SAAoB,EACpBC,YAA0B,EAC1BC,cAA+B,EAC/BC,YAAqB,EACrBC,qBAAgC,EAC/B;EACD,SAAS;;EACTC,eAAQ,CAACC,MAAM,CAA2BC,KAAQ,IAAQ;IACzD,SAAS;;IACT,MAAMC,YAAY,GAAGD,KAAsB;IAC3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AAClB,cAAc,IAAI,IAAI;EACrC;EAEA,KAAK,MAAMmB,cAAc,IAAIZ,UAAU,EAAE;IACxC,MAAMa,KAAK,GAAGb,UAAU,CAACY,cAAc,CAAC;IACxC,IAAIC,KAAK,CAACX,KAAK,IAAI,CAAC,EAAE;IACtB,IAAIW,KAAK,CAACrB,YAAY,EAAEsB,QAAQ,CAACvB,SAAS,CAAC,EAAE;MAC5C,OAAOsB,KAAK,CAACpB,cAAc,IAAI,IAAI;IACpC;EACD;EAEA,OAAO,IAAI;AACZ;AAEA,SAASwB,gBAAgBA,CAACC,KAAa,EAAEC,EAAU,EAAE;EACpD,SAAS;;EACTC,aAAM,CAACvB,MAAM,CAAyBC,KAAQ,IAAQ;IACrD,SAAS;;IACT,MAAMC,YAAY,GAAGD,KAAoB;IACzCC,YAAY,CAACmB,KAAK,CAAC,GAAG;
|
|
1
|
+
{"version":3,"names":["_state","require","registerBoundaryPresence","tag","screenKey","ancestorKeys","boundaryConfig","navigatorKey","ancestorNavigatorKeys","presence","modify","state","mutableState","tagEntries","currentEntry","count","debugStoreSizeLog","unregisterBoundaryPresence","value","mutableTagEntries","mutableEntry","nextCount","_remainingKey","hasBoundaryPresence","direct","entryScreenKey","entry","includes","getBoundaryPresence","getBoundaryConfig","setGroupActiveId","group","id","groups","activeId","getGroupActiveId","getGroups"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/presence.ts"],"mappings":";;;;;;;;;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEA,SAASC,wBAAwBA,CAChCC,GAAU,EACVC,SAAoB,EACpBC,YAA0B,EAC1BC,cAA+B,EAC/BC,YAAqB,EACrBC,qBAAgC,EAC/B;EACD,SAAS;;EACTC,eAAQ,CAACC,MAAM,CAA2BC,KAAQ,IAAQ;IACzD,SAAS;;IACT,MAAMC,YAAY,GAAGD,KAAsB;IAC3C,IAAIE,UAAU,GAAGD,YAAY,CAACT,GAAG,CAAC;IAClC,IAAI,CAACU,UAAU,EAAE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;IACxC,MAAMa,KAAK,GAAGb,UAAU,CAACY,cAAc,CAAC;IACxC,IAAIC,KAAK,CAACX,KAAK,IAAI,CAAC,EAAE;IACtB,IAAIW,KAAK,CAACrB,YAAY,EAAEsB,QAAQ,CAACvB,SAAS,CAAC,EAAE;MAC5C,OAAOsB,KAAK,CAACpB,cAAc,IAAI,IAAI;IACpC;EACD;EAEA,OAAO,IAAI;AACZ;AAEA,SAASwB,gBAAgBA,CAACC,KAAa,EAAEC,EAAU,EAAE;EACpD,SAAS;;EACTC,aAAM,CAACvB,MAAM,CAAyBC,KAAQ,IAAQ;IACrD,SAAS;;IACT,MAAMC,YAAY,GAAGD,KAAoB;IACzCC,YAAY,CAACmB,KAAK,CAAC,GAAG;MACrBG,QAAQ,EAAEF;IACX,CAAC;IACD,OAAOrB,KAAK;EACb,CAAC,CAAC;EACF,IAAAK,wBAAiB,EAAC,oBAAoBe,KAAK,IAAIC,EAAE,GAAG,CAAC;AACtD;AAEA,SAASG,gBAAgBA,CAACJ,KAAa,EAAiB;EACvD,SAAS;;EACT,OAAOE,aAAM,CAACf,KAAK,CAACa,KAAK,CAAC,EAAEG,QAAQ,IAAI,IAAI;AAC7C;AAEA,SAASE,SAASA,CAAA,EAAG;EACpB,SAAS;;EACT,OAAOH,aAAM;AACd","ignoreList":[]}
|
|
@@ -34,7 +34,9 @@ const resolveBounds = params => {
|
|
|
34
34
|
entering,
|
|
35
35
|
currentScreenKey,
|
|
36
36
|
sourceScreenKey: resolvedPair.sourceScreenKey,
|
|
37
|
-
destinationScreenKey: resolvedPair.destinationScreenKey
|
|
37
|
+
destinationScreenKey: resolvedPair.destinationScreenKey,
|
|
38
|
+
hasTargetOverride,
|
|
39
|
+
usedSnapshotDestination: resolvedPair.usedSnapshotDestination
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
42
|
|
|
@@ -46,7 +48,9 @@ const resolveBounds = params => {
|
|
|
46
48
|
entering,
|
|
47
49
|
currentScreenKey,
|
|
48
50
|
sourceScreenKey: resolvedPair.sourceScreenKey,
|
|
49
|
-
destinationScreenKey: resolvedPair.destinationScreenKey
|
|
51
|
+
destinationScreenKey: resolvedPair.destinationScreenKey,
|
|
52
|
+
hasTargetOverride,
|
|
53
|
+
usedSnapshotDestination: resolvedPair.usedSnapshotDestination
|
|
50
54
|
};
|
|
51
55
|
}
|
|
52
56
|
const start = sourceBounds;
|
|
@@ -64,7 +68,9 @@ const resolveBounds = params => {
|
|
|
64
68
|
entering,
|
|
65
69
|
currentScreenKey,
|
|
66
70
|
sourceScreenKey: resolvedPair.sourceScreenKey,
|
|
67
|
-
destinationScreenKey: resolvedPair.destinationScreenKey
|
|
71
|
+
destinationScreenKey: resolvedPair.destinationScreenKey,
|
|
72
|
+
hasTargetOverride,
|
|
73
|
+
usedSnapshotDestination: resolvedPair.usedSnapshotDestination
|
|
68
74
|
};
|
|
69
75
|
};
|
|
70
76
|
const computeBoundStyles = ({
|
|
@@ -91,7 +97,9 @@ const computeBoundStyles = ({
|
|
|
91
97
|
entering,
|
|
92
98
|
currentScreenKey,
|
|
93
99
|
sourceScreenKey,
|
|
94
|
-
destinationScreenKey
|
|
100
|
+
destinationScreenKey,
|
|
101
|
+
hasTargetOverride,
|
|
102
|
+
usedSnapshotDestination
|
|
95
103
|
} = resolveBounds({
|
|
96
104
|
id,
|
|
97
105
|
previous,
|
|
@@ -109,7 +117,8 @@ const computeBoundStyles = ({
|
|
|
109
117
|
}
|
|
110
118
|
const ranges = entering ? _constants.ENTER_RANGE : _constants.EXIT_RANGE;
|
|
111
119
|
if (computeOptions.method === "content") {
|
|
112
|
-
const
|
|
120
|
+
const ignoresSnapshotDestinationOwnership = hasTargetOverride && usedSnapshotDestination && destinationScreenKey === sourceScreenKey;
|
|
121
|
+
const currentOwnsSource = !!currentScreenKey && currentScreenKey === sourceScreenKey && (currentScreenKey !== destinationScreenKey || ignoresSnapshotDestinationOwnership);
|
|
113
122
|
const contentStart = currentOwnsSource ? end : start;
|
|
114
123
|
const contentEnd = currentOwnsSource ? start : end;
|
|
115
124
|
const geometry = (0, _geometry.computeContentTransformGeometry)({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_constants","require","_bounds","_geometry","_styleComposers","resolveBounds","params","entering","next","fullscreen","FULLSCREEN_DIMENSIONS","dimensions","isFullscreenTarget","computeOptions","target","hasCustomTarget","hasTargetOverride","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","resolvedPair","BoundStore","resolveTransitionPair","String","id","sourceBounds","destinationBounds","start","end","sourceScreenKey","destinationScreenKey","customTarget","computeBoundStyles","progress","raw","EMPTY_BOUND_HELPER_RESULT_RAW","EMPTY_BOUND_HELPER_RESULT","ranges","ENTER_RANGE","EXIT_RANGE","method","currentOwnsSource","contentStart","contentEnd","geometry","computeContentTransformGeometry","anchor","scaleMode","composeContentStyle","computeRelativeGeometry","common","isSize","isAbsolute","space","composeSizeAbsolute","composeSizeRelative","composeTransformAbsolute","composeTransformRelative","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/compute-bounds-styles.ts"],"mappings":";;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAOA,IAAAC,OAAA,GAAAD,OAAA;AAWA,IAAAE,SAAA,GAAAF,OAAA;AAIA,IAAAG,eAAA,GAAAH,OAAA;AASA,MAAMI,aAAa,GAAIC,MAStB,IAAK;EACL,SAAS;;EAET,MAAMC,QAAQ,GAAG,CAACD,MAAM,CAACE,IAAI;EAC7B,MAAMC,UAAU,GAAG,IAAAC,gCAAqB,EAACJ,MAAM,CAACK,UAAU,CAAC;EAE3D,MAAMC,kBAAkB,GAAGN,MAAM,CAACO,cAAc,CAACC,MAAM,KAAK,YAAY;EACxE,MAAMC,eAAe,GAAG,OAAOT,MAAM,CAACO,cAAc,CAACC,MAAM,KAAK,QAAQ;EACxE,MAAME,iBAAiB,GAAGJ,kBAAkB,IAAIG,eAAe;EAE/D,MAAME,gBAAgB,GAAGX,MAAM,CAACY,OAAO,EAAEC,KAAK,CAACC,GAAG;EAClD,MAAMC,iBAAiB,GAAGf,MAAM,CAACgB,QAAQ,EAAEH,KAAK,CAACC,GAAG;EACpD,MAAMG,aAAa,GAAGjB,MAAM,CAACE,IAAI,EAAEW,KAAK,CAACC,GAAG;EAE5C,MAAMI,YAAY,GACjBlB,MAAM,CAACkB,YAAY,IACnBC,kBAAU,CAACC,qBAAqB,CAACC,MAAM,CAACrB,MAAM,CAACsB,EAAE,CAAC,EAAE;IACnDX,gBAAgB;IAChBI,iBAAiB;IACjBE,aAAa;IACbhB;EACD,CAAC,CAAC;EAEH,MAAMsB,YAAY,GAAGL,YAAY,CAACK,YAAY;EAC9C,MAAMC,iBAAiB,GAAGN,YAAY,CAACM,iBAAiB;EAExD,IAAI,CAACD,YAAY,EAAE;IAClB,OAAO;MACNE,KAAK,EAAE,IAAI;MACXC,GAAG,EAAE,IAAI;MACTzB,QAAQ;MACRU,gBAAgB;MAChBgB,eAAe,EAAET,YAAY,CAACS,eAAe;MAC7CC,oBAAoB,EAAEV,YAAY,CAACU;
|
|
1
|
+
{"version":3,"names":["_constants","require","_bounds","_geometry","_styleComposers","resolveBounds","params","entering","next","fullscreen","FULLSCREEN_DIMENSIONS","dimensions","isFullscreenTarget","computeOptions","target","hasCustomTarget","hasTargetOverride","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","resolvedPair","BoundStore","resolveTransitionPair","String","id","sourceBounds","destinationBounds","start","end","sourceScreenKey","destinationScreenKey","usedSnapshotDestination","customTarget","computeBoundStyles","progress","raw","EMPTY_BOUND_HELPER_RESULT_RAW","EMPTY_BOUND_HELPER_RESULT","ranges","ENTER_RANGE","EXIT_RANGE","method","ignoresSnapshotDestinationOwnership","currentOwnsSource","contentStart","contentEnd","geometry","computeContentTransformGeometry","anchor","scaleMode","composeContentStyle","computeRelativeGeometry","common","isSize","isAbsolute","space","composeSizeAbsolute","composeSizeRelative","composeTransformAbsolute","composeTransformRelative","exports"],"sourceRoot":"../../../../../../src","sources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C;IACD,CAAC,CAAC;EACH;EAEA,MAAMqC,QAAQ,GAAG,IAAAK,iCAAuB,EAAC;IACxCxB,KAAK;IACLC,GAAG;IACHzB,QAAQ;IACR6C,MAAM,EAAEvC,cAAc,CAACuC,MAAM;IAC7BC,SAAS,EAAExC,cAAc,CAACwC;EAC3B,CAAC,CAAC;EAEF,MAAMG,MAA4B,GAAG;IACpCzB,KAAK;IACLC,GAAG;IACHM,QAAQ;IACRI,MAAM;IACNQ,QAAQ;IACRrC;EACD,CAAC;EAED,MAAM4C,MAAM,GAAG5C,cAAc,CAACgC,MAAM,KAAK,MAAM;EAC/C,MAAMa,UAAU,GAAG7C,cAAc,CAAC8C,KAAK,KAAK,UAAU;EAEtD,OAAOF,MAAM,GACVC,UAAU,GACT,IAAAE,mCAAmB,EAACJ,MAAM,CAAC,GAC3B,IAAAK,mCAAmB,EAACL,MAAM,CAAC,GAC5BE,UAAU,GACT,IAAAI,wCAAwB,EAACN,MAAM,CAAC,GAChC,IAAAO,wCAAwB,EAACP,MAAM,CAAC;AACrC,CAAC;AAACQ,OAAA,CAAA3B,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.resolveBoundTag = void 0;
|
|
7
|
-
var _bounds = require("../../../stores/bounds");
|
|
8
7
|
const resolveBoundTag = ({
|
|
9
8
|
id,
|
|
10
9
|
group
|
|
@@ -16,10 +15,6 @@ const resolveBoundTag = ({
|
|
|
16
15
|
if (!group) {
|
|
17
16
|
return normalizedId;
|
|
18
17
|
}
|
|
19
|
-
const currentActiveId = _bounds.BoundStore.getGroupActiveId(group);
|
|
20
|
-
if (currentActiveId !== normalizedId) {
|
|
21
|
-
_bounds.BoundStore.setGroupActiveId(group, normalizedId);
|
|
22
|
-
}
|
|
23
18
|
return `${group}:${normalizedId}`;
|
|
24
19
|
};
|
|
25
20
|
exports.resolveBoundTag = resolveBoundTag;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["resolveBoundTag","id","group","undefined","normalizedId","String","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/resolve-bound-tag.ts"],"mappings":";;;;;;AAOO,MAAMA,eAAe,GAAGA,CAAC;EAC/BC,EAAE;EACFC;AACsB,CAAC,KAAyB;EAChD,SAAS;;EAET,IAAID,EAAE,KAAKE,SAAS,IAAIF,EAAE,KAAK,IAAI,IAAIA,EAAE,KAAK,EAAE,EAAE,OAAOE,SAAS;EAElE,MAAMC,YAAY,GAAGC,MAAM,CAACJ,EAAE,CAAC;EAE/B,IAAI,CAACC,KAAK,EAAE;IACX,OAAOE,YAAY;EACpB;EAEA,OAAO,GAAGF,KAAK,IAAIE,YAAY,EAAE;AAClC,CAAC;AAACE,OAAA,CAAAN,eAAA,GAAAA,eAAA","ignoreList":[]}
|
|
@@ -11,6 +11,15 @@ var _interpolators = require("./helpers/interpolators");
|
|
|
11
11
|
var _linkAccessor = require("./helpers/link-accessor");
|
|
12
12
|
var _resolveBoundTag = require("./helpers/resolve-bound-tag");
|
|
13
13
|
var _zoom = require("./zoom");
|
|
14
|
+
const syncGroupActiveMember = (group, id) => {
|
|
15
|
+
"worklet";
|
|
16
|
+
|
|
17
|
+
if (!group) return;
|
|
18
|
+
if (id === undefined || id === null || id === "") return;
|
|
19
|
+
const normalizedId = String(id);
|
|
20
|
+
if (_bounds.BoundStore.getGroupActiveId(group) === normalizedId) return;
|
|
21
|
+
_bounds.BoundStore.setGroupActiveId(group, normalizedId);
|
|
22
|
+
};
|
|
14
23
|
const createBoundsAccessor = getProps => {
|
|
15
24
|
"worklet";
|
|
16
25
|
|
|
@@ -30,6 +39,7 @@ const createBoundsAccessor = getProps => {
|
|
|
30
39
|
"worklet";
|
|
31
40
|
|
|
32
41
|
const props = getProps();
|
|
42
|
+
syncGroupActiveMember(params?.group, params?.id);
|
|
33
43
|
const resolved = (0, _buildBoundsOptions.buildBoundsOptions)({
|
|
34
44
|
props,
|
|
35
45
|
id: params?.id,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_bounds","require","_buildBoundsOptions","_computeBoundsStyles","_interpolators","_linkAccessor","_resolveBoundTag","_zoom","createBoundsAccessor","getProps","computeForResolvedOptions","resolvedOptions","props","resolvedPair","computeBoundStyles","
|
|
1
|
+
{"version":3,"names":["_bounds","require","_buildBoundsOptions","_computeBoundsStyles","_interpolators","_linkAccessor","_resolveBoundTag","_zoom","syncGroupActiveMember","group","id","undefined","normalizedId","String","BoundStore","getGroupActiveId","setGroupActiveId","createBoundsAccessor","getProps","computeForResolvedOptions","resolvedOptions","props","resolvedPair","computeBoundStyles","previous","current","next","progress","dimensions","layouts","screen","computeElementBoundsStyles","params","resolved","buildBoundsOptions","overrides","mode","resolveBoundTag","computed","zoomBaseOptions","anchor","scaleMode","target","cachedNavigationPairProps","cachedNavigationPairTag","cachedNavigationPair","resolveNavigationPair","tag","frameProps","nextPair","resolveTransitionPair","currentScreenKey","route","key","previousScreenKey","nextScreenKey","entering","navigation","createZoomAccessor","computeRaw","currentProps","resolvedNavigationOptions","Object","isExtensible","defineProperty","value","enumerable","configurable","getSnapshot","getLink","createLinkAccessor","interpolateStyle","interpolateBounds","createInterpolators","assign","exports"],"sourceRoot":"../../../../../src","sources":["shared/utils/bounds/index.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAGA,IAAAC,mBAAA,GAAAD,OAAA;AACA,IAAAE,oBAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AAGA,IAAAM,KAAA,GAAAN,OAAA;AAEA,MAAMO,qBAAqB,GAAGA,CAACC,KAAc,EAAEC,EAAoB,KAAK;EACvE,SAAS;;EACT,IAAI,CAACD,KAAK,EAAE;EACZ,I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2C,yBAAyB,GAAG,IAAA3B,sCAAkB,EAAC;UACpDb,KAAK,EAAEuC,YAAY;UACnBlD,EAAE,EAAEsB,MAAM,EAAEtB,EAAE;UACdD,KAAK,EAAEuB,MAAM,EAAEvB,KAAK;UACpB0B,SAAS;UACTC,IAAI,EAAE,YAAY;UAClBC,eAAe,EAAfA;QACD,CAAC,CAAC;QACF,MAAMf,YAAY,GAAGwB,qBAAqB,CACzCjC,MAAM,CAACgD,yBAAyB,CAACnD,EAAE,CAAC,EACpCkD,YACD,CAAC;QAED,OAAOzC,yBAAyB,CAC/B0C,yBAAyB,EACzBD,YAAY,EACZtC,YACD,CAAC;MACF,CAAC,EAAE;IACL,CAAC,CAAC;IAEF,MAAMoB,MAAM,GAAGoB,MAAM,CAACC,YAAY,CAACzB,QAAQ,CAAC,GAAGA,QAAQ,GAAG;MAAE,GAAGA;IAAS,CAAC;IAEzEwB,MAAM,CAACE,cAAc,CAACtB,MAAM,EAAE,YAAY,EAAE;MAC3CuB,KAAK,EAAER,UAAU;MACjBS,UAAU,EAAE,KAAK;MACjBC,YAAY,EAAE;IACf,CAAC,CAAC;IAEF,OAAOzB,MAAM;EACd,CAAC;EAED,MAAM;IAAE0B,WAAW;IAAEC;EAAQ,CAAC,GAAG,IAAAC,gCAAkB,EAACpD,QAAQ,CAAC;EAC7D,MAAM;IAAEqD,gBAAgB;IAAEC;EAAkB,CAAC,GAAG,IAAAC,kCAAmB,EAAC;IACnEvD,QAAQ;IACRmD;EACD,CAAC,CAAC;EAEF,OAAOP,MAAM,CAACY,MAAM,CAAC3C,0BAA0B,EAAE;IAChDqC,WAAW;IACXC,OAAO;IACPE,gBAAgB;IAChBC;EACD,CAAC,CAAC;AACH,CAAC;AAACG,OAAA,CAAA1D,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/types/frame-props.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -316,6 +316,12 @@ const buildZoomStyles = ({
|
|
|
316
316
|
const nextRouteKey = props.next?.route.key;
|
|
317
317
|
const entering = !props.next;
|
|
318
318
|
const screenLayout = props.layouts.screen;
|
|
319
|
+
const transitionContext = {
|
|
320
|
+
currentScreenKey: currentRouteKey,
|
|
321
|
+
previousScreenKey: previousRouteKey,
|
|
322
|
+
nextScreenKey: nextRouteKey,
|
|
323
|
+
entering
|
|
324
|
+
};
|
|
319
325
|
const resolvedConfig = (0, _config.resolveZoomConfig)({
|
|
320
326
|
id,
|
|
321
327
|
group,
|
|
@@ -331,6 +337,17 @@ const buildZoomStyles = ({
|
|
|
331
337
|
explicitTarget,
|
|
332
338
|
zoomOptions: resolvedZoomOptions
|
|
333
339
|
} = resolvedConfig;
|
|
340
|
+
const resolvedPair = _bounds.BoundStore.resolveTransitionPair(resolvedTag, transitionContext);
|
|
341
|
+
const focusedVisibilityStyles = {
|
|
342
|
+
[resolvedTag]: {
|
|
343
|
+
style: {
|
|
344
|
+
opacity: 1
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
if (!resolvedPair.sourceBounds) {
|
|
349
|
+
return focused ? focusedVisibilityStyles : _constants.NO_STYLES;
|
|
350
|
+
}
|
|
334
351
|
const normX = props.active.gesture.normX;
|
|
335
352
|
const normY = props.active.gesture.normY;
|
|
336
353
|
const initialDirection = props.active.gesture.direction;
|
|
@@ -360,12 +377,6 @@ const buildZoomStyles = ({
|
|
|
360
377
|
}) : IDENTITY_DRAG_SCALE_OUTPUT[1];
|
|
361
378
|
const dragScale = combineScales(dragXScale, dragYScale);
|
|
362
379
|
if (focused) {
|
|
363
|
-
const focusedPair = _bounds.BoundStore.resolveTransitionPair(resolvedTag, {
|
|
364
|
-
currentScreenKey: currentRouteKey,
|
|
365
|
-
previousScreenKey: previousRouteKey,
|
|
366
|
-
nextScreenKey: nextRouteKey,
|
|
367
|
-
entering
|
|
368
|
-
});
|
|
369
380
|
const contentTarget = getZoomContentTarget({
|
|
370
381
|
explicitTarget,
|
|
371
382
|
resolvedTag,
|
|
@@ -375,7 +386,7 @@ const buildZoomStyles = ({
|
|
|
375
386
|
entering,
|
|
376
387
|
screenLayout,
|
|
377
388
|
anchor: sharedOptions.anchor,
|
|
378
|
-
resolvedPair
|
|
389
|
+
resolvedPair
|
|
379
390
|
});
|
|
380
391
|
const contentRaw = computeRaw({
|
|
381
392
|
...sharedOptions,
|
|
@@ -405,19 +416,22 @@ const buildZoomStyles = ({
|
|
|
405
416
|
const maskRadii = resolveMaskRadii({
|
|
406
417
|
progress,
|
|
407
418
|
zoomOptions: resolvedZoomOptions,
|
|
408
|
-
resolvedPair
|
|
419
|
+
resolvedPair
|
|
409
420
|
});
|
|
421
|
+
const focusedContentStyle = {
|
|
422
|
+
opacity: focusedFade,
|
|
423
|
+
transform: [{
|
|
424
|
+
translateX: contentTranslateX
|
|
425
|
+
}, {
|
|
426
|
+
translateY: contentTranslateY
|
|
427
|
+
}, {
|
|
428
|
+
scale: contentScale
|
|
429
|
+
}]
|
|
430
|
+
};
|
|
410
431
|
return {
|
|
411
432
|
[_constants.NAVIGATION_CONTAINER_STYLE_ID]: {
|
|
412
433
|
style: {
|
|
413
|
-
|
|
414
|
-
transform: [{
|
|
415
|
-
translateX: contentTranslateX
|
|
416
|
-
}, {
|
|
417
|
-
translateY: contentTranslateY
|
|
418
|
-
}, {
|
|
419
|
-
scale: contentScale
|
|
420
|
-
}]
|
|
434
|
+
...focusedContentStyle
|
|
421
435
|
}
|
|
422
436
|
},
|
|
423
437
|
[_constants.NAVIGATION_MASK_STYLE_ID]: {
|
|
@@ -441,15 +455,7 @@ const buildZoomStyles = ({
|
|
|
441
455
|
} : {})
|
|
442
456
|
}
|
|
443
457
|
},
|
|
444
|
-
|
|
445
|
-
// Without this, useAssociatedStyles enters "waiting-first-style" mode
|
|
446
|
-
// (opacity: 0) because it detects previous-screen evidence but never
|
|
447
|
-
// receives a resolved style for this tag.
|
|
448
|
-
[resolvedTag]: {
|
|
449
|
-
style: {
|
|
450
|
-
opacity: 1
|
|
451
|
-
}
|
|
452
|
-
}
|
|
458
|
+
...focusedVisibilityStyles
|
|
453
459
|
};
|
|
454
460
|
}
|
|
455
461
|
const unfocusedFade = props.active?.closing ? (0, _reactNativeReanimated.interpolate)(progress, [1.6, 2], [1, 0], "clamp") : (0, _reactNativeReanimated.interpolate)(progress, [1, 1.5], [1, 0], "clamp");
|
|
@@ -463,7 +469,8 @@ const buildZoomStyles = ({
|
|
|
463
469
|
nextRouteKey,
|
|
464
470
|
entering,
|
|
465
471
|
screenLayout,
|
|
466
|
-
anchor: sharedOptions.anchor
|
|
472
|
+
anchor: sharedOptions.anchor,
|
|
473
|
+
resolvedPair
|
|
467
474
|
});
|
|
468
475
|
const elementRaw = computeRaw({
|
|
469
476
|
...sharedOptions,
|