@react-navigation/stack 7.2.8 → 7.2.10
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/lib/typescript/src/TransitionConfigs/CardStyleInterpolators.d.ts.map +1 -0
- package/lib/typescript/src/TransitionConfigs/HeaderStyleInterpolators.d.ts.map +1 -0
- package/lib/typescript/src/TransitionConfigs/TransitionPresets.d.ts.map +1 -0
- package/lib/typescript/src/TransitionConfigs/TransitionSpecs.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/navigators/createStackNavigator.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts.map +1 -0
- package/lib/typescript/src/utils/CardAnimationContext.d.ts.map +1 -0
- package/lib/typescript/src/utils/GestureHandlerRefContext.d.ts.map +1 -0
- package/lib/typescript/src/utils/ModalPresentationContext.d.ts.map +1 -0
- package/lib/typescript/src/utils/conditional.d.ts.map +1 -0
- package/lib/typescript/src/utils/findLastIndex.d.ts.map +1 -0
- package/lib/typescript/src/utils/getDistanceForDirection.d.ts.map +1 -0
- package/lib/typescript/src/utils/getInvertedMultiplier.d.ts.map +1 -0
- package/lib/typescript/src/utils/getModalRoutesKeys.d.ts.map +1 -0
- package/lib/typescript/src/utils/getShadowStyle.d.ts.map +1 -0
- package/lib/typescript/src/utils/memoize.d.ts.map +1 -0
- package/lib/typescript/src/utils/throttle.d.ts.map +1 -0
- package/lib/typescript/src/utils/useCardAnimation.d.ts.map +1 -0
- package/lib/typescript/src/utils/useGestureHandlerRef.d.ts.map +1 -0
- package/lib/typescript/src/utils/useKeyboardManager.d.ts.map +1 -0
- package/lib/typescript/src/views/GestureHandler.android.d.ts.map +1 -0
- package/lib/typescript/src/views/GestureHandler.d.ts.map +1 -0
- package/lib/typescript/src/views/GestureHandler.ios.d.ts.map +1 -0
- package/lib/typescript/src/views/GestureHandlerNative.d.ts.map +1 -0
- package/lib/typescript/src/views/Header/Header.d.ts.map +1 -0
- package/lib/typescript/src/views/Header/HeaderContainer.d.ts.map +1 -0
- package/lib/typescript/src/views/Header/HeaderSegment.d.ts.map +1 -0
- package/lib/typescript/src/views/Screens.d.ts.map +1 -0
- package/lib/typescript/src/views/Stack/Card.d.ts.map +1 -0
- package/lib/typescript/src/views/Stack/CardContainer.d.ts.map +1 -0
- package/lib/typescript/src/views/Stack/CardSheet.d.ts.map +1 -0
- package/lib/typescript/src/views/Stack/CardStack.d.ts.map +1 -0
- package/lib/typescript/src/views/Stack/StackView.d.ts.map +1 -0
- package/package.json +14 -26
- package/lib/commonjs/TransitionConfigs/CardStyleInterpolators.js +0 -407
- package/lib/commonjs/TransitionConfigs/CardStyleInterpolators.js.map +0 -1
- package/lib/commonjs/TransitionConfigs/HeaderStyleInterpolators.js +0 -271
- package/lib/commonjs/TransitionConfigs/HeaderStyleInterpolators.js.map +0 -1
- package/lib/commonjs/TransitionConfigs/TransitionPresets.js +0 -156
- package/lib/commonjs/TransitionConfigs/TransitionPresets.js.map +0 -1
- package/lib/commonjs/TransitionConfigs/TransitionSpecs.js +0 -128
- package/lib/commonjs/TransitionConfigs/TransitionSpecs.js.map +0 -1
- package/lib/commonjs/index.js +0 -68
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/navigators/createStackNavigator.js +0 -75
- package/lib/commonjs/navigators/createStackNavigator.js.map +0 -1
- package/lib/commonjs/package.json +0 -1
- package/lib/commonjs/types.js +0 -6
- package/lib/commonjs/types.js.map +0 -1
- package/lib/commonjs/utils/CardAnimationContext.js +0 -11
- package/lib/commonjs/utils/CardAnimationContext.js.map +0 -1
- package/lib/commonjs/utils/GestureHandlerRefContext.js +0 -11
- package/lib/commonjs/utils/GestureHandlerRefContext.js.map +0 -1
- package/lib/commonjs/utils/ModalPresentationContext.js +0 -11
- package/lib/commonjs/utils/ModalPresentationContext.js.map +0 -1
- package/lib/commonjs/utils/conditional.js +0 -32
- package/lib/commonjs/utils/conditional.js.map +0 -1
- package/lib/commonjs/utils/findLastIndex.js +0 -15
- package/lib/commonjs/utils/findLastIndex.js.map +0 -1
- package/lib/commonjs/utils/getDistanceForDirection.js +0 -19
- package/lib/commonjs/utils/getDistanceForDirection.js.map +0 -1
- package/lib/commonjs/utils/getInvertedMultiplier.js +0 -19
- package/lib/commonjs/utils/getInvertedMultiplier.js.map +0 -1
- package/lib/commonjs/utils/getModalRoutesKeys.js +0 -17
- package/lib/commonjs/utils/getModalRoutesKeys.js.map +0 -1
- package/lib/commonjs/utils/getShadowStyle.js +0 -29
- package/lib/commonjs/utils/getShadowStyle.js.map +0 -1
- package/lib/commonjs/utils/memoize.js +0 -33
- package/lib/commonjs/utils/memoize.js.map +0 -1
- package/lib/commonjs/utils/throttle.js +0 -18
- package/lib/commonjs/utils/throttle.js.map +0 -1
- package/lib/commonjs/utils/useCardAnimation.js +0 -18
- package/lib/commonjs/utils/useCardAnimation.js.map +0 -1
- package/lib/commonjs/utils/useGestureHandlerRef.js +0 -18
- package/lib/commonjs/utils/useGestureHandlerRef.js.map +0 -1
- package/lib/commonjs/utils/useKeyboardManager.js +0 -96
- package/lib/commonjs/utils/useKeyboardManager.js.map +0 -1
- package/lib/commonjs/views/GestureHandler.android.js +0 -17
- package/lib/commonjs/views/GestureHandler.android.js.map +0 -1
- package/lib/commonjs/views/GestureHandler.ios.js +0 -17
- package/lib/commonjs/views/GestureHandler.ios.js.map +0 -1
- package/lib/commonjs/views/GestureHandler.js +0 -27
- package/lib/commonjs/views/GestureHandler.js.map +0 -1
- package/lib/commonjs/views/GestureHandlerNative.js +0 -35
- package/lib/commonjs/views/GestureHandlerNative.js.map +0 -1
- package/lib/commonjs/views/Header/Header.js +0 -62
- package/lib/commonjs/views/Header/Header.js.map +0 -1
- package/lib/commonjs/views/Header/HeaderContainer.js +0 -135
- package/lib/commonjs/views/Header/HeaderContainer.js.map +0 -1
- package/lib/commonjs/views/Header/HeaderSegment.js +0 -149
- package/lib/commonjs/views/Header/HeaderSegment.js.map +0 -1
- package/lib/commonjs/views/Screens.js +0 -50
- package/lib/commonjs/views/Screens.js.map +0 -1
- package/lib/commonjs/views/Stack/Card.js +0 -496
- package/lib/commonjs/views/Stack/Card.js.map +0 -1
- package/lib/commonjs/views/Stack/CardContainer.js +0 -282
- package/lib/commonjs/views/Stack/CardContainer.js.map +0 -1
- package/lib/commonjs/views/Stack/CardSheet.js +0 -88
- package/lib/commonjs/views/Stack/CardSheet.js.map +0 -1
- package/lib/commonjs/views/Stack/CardStack.js +0 -484
- package/lib/commonjs/views/Stack/CardStack.js.map +0 -1
- package/lib/commonjs/views/Stack/StackView.js +0 -346
- package/lib/commonjs/views/Stack/StackView.js.map +0 -1
- package/lib/typescript/commonjs/package.json +0 -1
- package/lib/typescript/commonjs/src/TransitionConfigs/CardStyleInterpolators.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/TransitionConfigs/HeaderStyleInterpolators.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/TransitionConfigs/TransitionPresets.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/TransitionConfigs/TransitionSpecs.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/navigators/createStackNavigator.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/CardAnimationContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/GestureHandlerRefContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/ModalPresentationContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/conditional.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/findLastIndex.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/getDistanceForDirection.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/getInvertedMultiplier.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/getModalRoutesKeys.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/getShadowStyle.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/memoize.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/throttle.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/useCardAnimation.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/useGestureHandlerRef.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/useKeyboardManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/GestureHandler.android.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/GestureHandler.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/GestureHandler.ios.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/GestureHandlerNative.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/Header/Header.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/Header/HeaderContainer.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/Header/HeaderSegment.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/Screens.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/Stack/Card.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/Stack/CardContainer.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/Stack/CardSheet.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/Stack/CardStack.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/Stack/StackView.d.ts.map +0 -1
- package/lib/typescript/module/src/TransitionConfigs/CardStyleInterpolators.d.ts +0 -43
- package/lib/typescript/module/src/TransitionConfigs/CardStyleInterpolators.d.ts.map +0 -1
- package/lib/typescript/module/src/TransitionConfigs/HeaderStyleInterpolators.d.ts +0 -23
- package/lib/typescript/module/src/TransitionConfigs/HeaderStyleInterpolators.d.ts.map +0 -1
- package/lib/typescript/module/src/TransitionConfigs/TransitionPresets.d.ts +0 -50
- package/lib/typescript/module/src/TransitionConfigs/TransitionPresets.d.ts.map +0 -1
- package/lib/typescript/module/src/TransitionConfigs/TransitionSpecs.d.ts +0 -46
- package/lib/typescript/module/src/TransitionConfigs/TransitionSpecs.d.ts.map +0 -1
- package/lib/typescript/module/src/index.d.ts +0 -29
- package/lib/typescript/module/src/index.d.ts.map +0 -1
- package/lib/typescript/module/src/navigators/createStackNavigator.d.ts +0 -16
- package/lib/typescript/module/src/navigators/createStackNavigator.d.ts.map +0 -1
- package/lib/typescript/module/src/types.d.ts +0 -541
- package/lib/typescript/module/src/types.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/CardAnimationContext.d.ts +0 -4
- package/lib/typescript/module/src/utils/CardAnimationContext.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/GestureHandlerRefContext.d.ts +0 -3
- package/lib/typescript/module/src/utils/GestureHandlerRefContext.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/ModalPresentationContext.d.ts +0 -3
- package/lib/typescript/module/src/utils/ModalPresentationContext.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/conditional.d.ts +0 -10
- package/lib/typescript/module/src/utils/conditional.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/findLastIndex.d.ts +0 -2
- package/lib/typescript/module/src/utils/findLastIndex.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/getDistanceForDirection.d.ts +0 -3
- package/lib/typescript/module/src/utils/getDistanceForDirection.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/getInvertedMultiplier.d.ts +0 -3
- package/lib/typescript/module/src/utils/getInvertedMultiplier.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/getModalRoutesKeys.d.ts +0 -4
- package/lib/typescript/module/src/utils/getModalRoutesKeys.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/getShadowStyle.d.ts +0 -27
- package/lib/typescript/module/src/utils/getShadowStyle.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/memoize.d.ts +0 -2
- package/lib/typescript/module/src/utils/memoize.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/throttle.d.ts +0 -2
- package/lib/typescript/module/src/utils/throttle.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/useCardAnimation.d.ts +0 -2
- package/lib/typescript/module/src/utils/useCardAnimation.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/useGestureHandlerRef.d.ts +0 -3
- package/lib/typescript/module/src/utils/useGestureHandlerRef.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/useKeyboardManager.d.ts +0 -6
- package/lib/typescript/module/src/utils/useKeyboardManager.d.ts.map +0 -1
- package/lib/typescript/module/src/views/GestureHandler.android.d.ts +0 -2
- package/lib/typescript/module/src/views/GestureHandler.android.d.ts.map +0 -1
- package/lib/typescript/module/src/views/GestureHandler.d.ts +0 -15
- package/lib/typescript/module/src/views/GestureHandler.d.ts.map +0 -1
- package/lib/typescript/module/src/views/GestureHandler.ios.d.ts +0 -2
- package/lib/typescript/module/src/views/GestureHandler.ios.d.ts.map +0 -1
- package/lib/typescript/module/src/views/GestureHandlerNative.d.ts +0 -5
- package/lib/typescript/module/src/views/GestureHandlerNative.d.ts.map +0 -1
- package/lib/typescript/module/src/views/Header/Header.d.ts +0 -4
- package/lib/typescript/module/src/views/Header/Header.d.ts.map +0 -1
- package/lib/typescript/module/src/views/Header/HeaderContainer.d.ts +0 -19
- package/lib/typescript/module/src/views/Header/HeaderContainer.d.ts.map +0 -1
- package/lib/typescript/module/src/views/Header/HeaderSegment.d.ts +0 -14
- package/lib/typescript/module/src/views/Header/HeaderSegment.d.ts.map +0 -1
- package/lib/typescript/module/src/views/Screens.d.ts +0 -15
- package/lib/typescript/module/src/views/Screens.d.ts.map +0 -1
- package/lib/typescript/module/src/views/Stack/Card.d.ts +0 -78
- package/lib/typescript/module/src/views/Stack/Card.d.ts.map +0 -1
- package/lib/typescript/module/src/views/Stack/CardContainer.d.ts +0 -61
- package/lib/typescript/module/src/views/Stack/CardContainer.d.ts.map +0 -1
- package/lib/typescript/module/src/views/Stack/CardSheet.d.ts +0 -14
- package/lib/typescript/module/src/views/Stack/CardSheet.d.ts.map +0 -1
- package/lib/typescript/module/src/views/Stack/CardStack.d.ts +0 -66
- package/lib/typescript/module/src/views/Stack/CardStack.d.ts.map +0 -1
- package/lib/typescript/module/src/views/Stack/StackView.d.ts +0 -51
- package/lib/typescript/module/src/views/Stack/StackView.d.ts.map +0 -1
- /package/lib/typescript/{module/package.json → package.json} +0 -0
- /package/lib/typescript/{commonjs/src → src}/TransitionConfigs/CardStyleInterpolators.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/TransitionConfigs/HeaderStyleInterpolators.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/TransitionConfigs/TransitionPresets.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/TransitionConfigs/TransitionSpecs.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/navigators/createStackNavigator.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/types.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/CardAnimationContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/GestureHandlerRefContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/ModalPresentationContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/conditional.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/findLastIndex.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/getDistanceForDirection.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/getInvertedMultiplier.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/getModalRoutesKeys.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/getShadowStyle.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/memoize.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/throttle.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/useCardAnimation.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/useGestureHandlerRef.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/useKeyboardManager.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/GestureHandler.android.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/GestureHandler.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/GestureHandler.ios.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/GestureHandlerNative.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/Header/Header.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/Header/HeaderContainer.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/Header/HeaderSegment.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/Screens.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/Stack/Card.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/Stack/CardContainer.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/Stack/CardSheet.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/Stack/CardStack.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/Stack/StackView.d.ts +0 -0
|
@@ -1,484 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.CardStack = void 0;
|
|
7
|
-
var _elements = require("@react-navigation/elements");
|
|
8
|
-
var React = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _reactNative = require("react-native");
|
|
10
|
-
var _CardStyleInterpolators = require("../../TransitionConfigs/CardStyleInterpolators.js");
|
|
11
|
-
var _TransitionPresets = require("../../TransitionConfigs/TransitionPresets.js");
|
|
12
|
-
var _findLastIndex = require("../../utils/findLastIndex.js");
|
|
13
|
-
var _getDistanceForDirection = require("../../utils/getDistanceForDirection.js");
|
|
14
|
-
var _getModalRoutesKeys = require("../../utils/getModalRoutesKeys.js");
|
|
15
|
-
var _Screens = require("../Screens.js");
|
|
16
|
-
var _CardContainer = require("./CardContainer.js");
|
|
17
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
-
const NAMED_TRANSITIONS_PRESETS = {
|
|
21
|
-
default: _TransitionPresets.DefaultTransition,
|
|
22
|
-
fade: _TransitionPresets.ModalFadeTransition,
|
|
23
|
-
fade_from_bottom: _TransitionPresets.FadeFromBottomAndroid,
|
|
24
|
-
fade_from_right: _TransitionPresets.FadeFromRightAndroid,
|
|
25
|
-
none: _TransitionPresets.DefaultTransition,
|
|
26
|
-
reveal_from_bottom: _TransitionPresets.RevealFromBottomAndroid,
|
|
27
|
-
scale_from_center: _TransitionPresets.ScaleFromCenterAndroid,
|
|
28
|
-
slide_from_left: _TransitionPresets.SlideFromLeftIOS,
|
|
29
|
-
slide_from_right: _TransitionPresets.SlideFromRightIOS,
|
|
30
|
-
slide_from_bottom: _reactNative.Platform.select({
|
|
31
|
-
ios: _TransitionPresets.ModalSlideFromBottomIOS,
|
|
32
|
-
default: _TransitionPresets.BottomSheetAndroid
|
|
33
|
-
})
|
|
34
|
-
};
|
|
35
|
-
const EPSILON = 1e-5;
|
|
36
|
-
const STATE_INACTIVE = 0;
|
|
37
|
-
const STATE_TRANSITIONING_OR_BELOW_TOP = 1;
|
|
38
|
-
const STATE_ON_TOP = 2;
|
|
39
|
-
const FALLBACK_DESCRIPTOR = Object.freeze({
|
|
40
|
-
options: {}
|
|
41
|
-
});
|
|
42
|
-
const getInterpolationIndex = (scenes, index) => {
|
|
43
|
-
const {
|
|
44
|
-
cardStyleInterpolator
|
|
45
|
-
} = scenes[index].descriptor.options;
|
|
46
|
-
|
|
47
|
-
// Start from current card and count backwards the number of cards with same interpolation
|
|
48
|
-
let interpolationIndex = 0;
|
|
49
|
-
for (let i = index - 1; i >= 0; i--) {
|
|
50
|
-
const cardStyleInterpolatorCurrent = scenes[i]?.descriptor.options.cardStyleInterpolator;
|
|
51
|
-
if (cardStyleInterpolatorCurrent !== cardStyleInterpolator) {
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
interpolationIndex++;
|
|
55
|
-
}
|
|
56
|
-
return interpolationIndex;
|
|
57
|
-
};
|
|
58
|
-
const getIsModalPresentation = cardStyleInterpolator => {
|
|
59
|
-
return cardStyleInterpolator === _CardStyleInterpolators.forModalPresentationIOS ||
|
|
60
|
-
// Handle custom modal presentation interpolators as well
|
|
61
|
-
cardStyleInterpolator.name === 'forModalPresentationIOS';
|
|
62
|
-
};
|
|
63
|
-
const getIsModal = (scene, interpolationIndex, isParentModal) => {
|
|
64
|
-
if (isParentModal) {
|
|
65
|
-
return true;
|
|
66
|
-
}
|
|
67
|
-
const {
|
|
68
|
-
cardStyleInterpolator
|
|
69
|
-
} = scene.descriptor.options;
|
|
70
|
-
const isModalPresentation = getIsModalPresentation(cardStyleInterpolator);
|
|
71
|
-
const isModal = isModalPresentation && interpolationIndex !== 0;
|
|
72
|
-
return isModal;
|
|
73
|
-
};
|
|
74
|
-
const getHeaderHeights = (scenes, insets, isParentHeaderShown, isParentModal, layout, previous) => {
|
|
75
|
-
return scenes.reduce((acc, curr, index) => {
|
|
76
|
-
const {
|
|
77
|
-
headerStatusBarHeight = isParentHeaderShown ? 0 : insets.top,
|
|
78
|
-
headerStyle
|
|
79
|
-
} = curr.descriptor.options;
|
|
80
|
-
const style = _reactNative.StyleSheet.flatten(headerStyle || {});
|
|
81
|
-
const height = 'height' in style && typeof style.height === 'number' ? style.height : previous[curr.route.key];
|
|
82
|
-
const interpolationIndex = getInterpolationIndex(scenes, index);
|
|
83
|
-
const isModal = getIsModal(curr, interpolationIndex, isParentModal);
|
|
84
|
-
acc[curr.route.key] = typeof height === 'number' ? height : (0, _elements.getDefaultHeaderHeight)(layout, isModal, headerStatusBarHeight);
|
|
85
|
-
return acc;
|
|
86
|
-
}, {});
|
|
87
|
-
};
|
|
88
|
-
const getDistanceFromOptions = (layout, descriptor, isRTL) => {
|
|
89
|
-
if (descriptor?.options.gestureDirection) {
|
|
90
|
-
return (0, _getDistanceForDirection.getDistanceForDirection)(layout, descriptor?.options.gestureDirection, isRTL);
|
|
91
|
-
}
|
|
92
|
-
const defaultGestureDirection = descriptor?.options.presentation === 'modal' ? _TransitionPresets.ModalTransition.gestureDirection : _TransitionPresets.DefaultTransition.gestureDirection;
|
|
93
|
-
const gestureDirection = descriptor?.options.animation ? NAMED_TRANSITIONS_PRESETS[descriptor?.options.animation]?.gestureDirection : defaultGestureDirection;
|
|
94
|
-
return (0, _getDistanceForDirection.getDistanceForDirection)(layout, gestureDirection, isRTL);
|
|
95
|
-
};
|
|
96
|
-
const getProgressFromGesture = (gesture, layout, descriptor, isRTL) => {
|
|
97
|
-
const distance = getDistanceFromOptions({
|
|
98
|
-
// Make sure that we have a non-zero distance, otherwise there will be incorrect progress
|
|
99
|
-
// This causes blank screen on web if it was previously inside container with display: none
|
|
100
|
-
width: Math.max(1, layout.width),
|
|
101
|
-
height: Math.max(1, layout.height)
|
|
102
|
-
}, descriptor, isRTL);
|
|
103
|
-
if (distance > 0) {
|
|
104
|
-
return gesture.interpolate({
|
|
105
|
-
inputRange: [0, distance],
|
|
106
|
-
outputRange: [1, 0]
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
return gesture.interpolate({
|
|
110
|
-
inputRange: [distance, 0],
|
|
111
|
-
outputRange: [0, 1]
|
|
112
|
-
});
|
|
113
|
-
};
|
|
114
|
-
class CardStack extends React.Component {
|
|
115
|
-
static getDerivedStateFromProps(props, state) {
|
|
116
|
-
if (props.routes === state.routes && props.descriptors === state.descriptors) {
|
|
117
|
-
return null;
|
|
118
|
-
}
|
|
119
|
-
const gestures = [...props.routes, ...props.state.preloadedRoutes].reduce((acc, curr) => {
|
|
120
|
-
const descriptor = props.descriptors[curr.key] || props.preloadedDescriptors[curr.key];
|
|
121
|
-
const {
|
|
122
|
-
animation
|
|
123
|
-
} = descriptor?.options || {};
|
|
124
|
-
acc[curr.key] = state.gestures[curr.key] || new _reactNative.Animated.Value(props.openingRouteKeys.includes(curr.key) && animation !== 'none' || props.state.preloadedRoutes.includes(curr) ? getDistanceFromOptions(state.layout, descriptor, props.direction === 'rtl') : 0);
|
|
125
|
-
return acc;
|
|
126
|
-
}, {});
|
|
127
|
-
const modalRouteKeys = (0, _getModalRoutesKeys.getModalRouteKeys)([...props.routes, ...props.state.preloadedRoutes], {
|
|
128
|
-
...props.descriptors,
|
|
129
|
-
...props.preloadedDescriptors
|
|
130
|
-
});
|
|
131
|
-
const scenes = [...props.routes, ...props.state.preloadedRoutes].map((route, index, self) => {
|
|
132
|
-
// For preloaded screens, we don't care about the previous and the next screen
|
|
133
|
-
const isPreloaded = props.state.preloadedRoutes.includes(route);
|
|
134
|
-
const previousRoute = isPreloaded ? undefined : self[index - 1];
|
|
135
|
-
const nextRoute = isPreloaded ? undefined : self[index + 1];
|
|
136
|
-
const oldScene = state.scenes[index];
|
|
137
|
-
const currentGesture = gestures[route.key];
|
|
138
|
-
const previousGesture = previousRoute ? gestures[previousRoute.key] : undefined;
|
|
139
|
-
const nextGesture = nextRoute ? gestures[nextRoute.key] : undefined;
|
|
140
|
-
const descriptor = (isPreloaded ? props.preloadedDescriptors : props.descriptors)[route.key] || state.descriptors[route.key] || (oldScene ? oldScene.descriptor : FALLBACK_DESCRIPTOR);
|
|
141
|
-
const nextDescriptor = nextRoute && (props.descriptors[nextRoute?.key] || state.descriptors[nextRoute?.key]);
|
|
142
|
-
const previousDescriptor = previousRoute && (props.descriptors[previousRoute?.key] || state.descriptors[previousRoute?.key]);
|
|
143
|
-
|
|
144
|
-
// When a screen is not the last, it should use next screen's transition config
|
|
145
|
-
// Many transitions also animate the previous screen, so using 2 different transitions doesn't look right
|
|
146
|
-
// For example combining a slide and a modal transition would look wrong otherwise
|
|
147
|
-
// With this approach, combining different transition styles in the same navigator mostly looks right
|
|
148
|
-
// This will still be broken when 2 transitions have different idle state (e.g. modal presentation),
|
|
149
|
-
// but the majority of the transitions look alright
|
|
150
|
-
const optionsForTransitionConfig = index !== self.length - 1 && nextDescriptor && nextDescriptor.options.presentation !== 'transparentModal' ? nextDescriptor.options : descriptor.options;
|
|
151
|
-
|
|
152
|
-
// Assume modal if there are already modal screens in the stack
|
|
153
|
-
// or current screen is a modal when no presentation is specified
|
|
154
|
-
const isModal = modalRouteKeys.includes(route.key);
|
|
155
|
-
|
|
156
|
-
// Disable screen transition animation by default on web, windows and macos to match the native behavior
|
|
157
|
-
const excludedPlatforms = _reactNative.Platform.OS !== 'web' && _reactNative.Platform.OS !== 'windows' && _reactNative.Platform.OS !== 'macos';
|
|
158
|
-
const animation = optionsForTransitionConfig.animation ?? (excludedPlatforms ? 'default' : 'none');
|
|
159
|
-
const isAnimationEnabled = animation !== 'none';
|
|
160
|
-
const transitionPreset = animation !== 'default' ? NAMED_TRANSITIONS_PRESETS[animation] : isModal || optionsForTransitionConfig.presentation === 'modal' ? _TransitionPresets.ModalTransition : optionsForTransitionConfig.presentation === 'transparentModal' ? _TransitionPresets.ModalFadeTransition : _TransitionPresets.DefaultTransition;
|
|
161
|
-
const {
|
|
162
|
-
gestureEnabled = _reactNative.Platform.OS === 'ios' && isAnimationEnabled,
|
|
163
|
-
gestureDirection = transitionPreset.gestureDirection,
|
|
164
|
-
transitionSpec = transitionPreset.transitionSpec,
|
|
165
|
-
cardStyleInterpolator = isAnimationEnabled ? transitionPreset.cardStyleInterpolator : _CardStyleInterpolators.forNoAnimation,
|
|
166
|
-
headerStyleInterpolator = transitionPreset.headerStyleInterpolator,
|
|
167
|
-
cardOverlayEnabled = _reactNative.Platform.OS !== 'ios' && optionsForTransitionConfig.presentation !== 'transparentModal' || getIsModalPresentation(cardStyleInterpolator)
|
|
168
|
-
} = optionsForTransitionConfig;
|
|
169
|
-
const headerMode = descriptor.options.headerMode ?? (!(optionsForTransitionConfig.presentation === 'modal' || optionsForTransitionConfig.presentation === 'transparentModal' || nextDescriptor?.options.presentation === 'modal' || nextDescriptor?.options.presentation === 'transparentModal' || getIsModalPresentation(cardStyleInterpolator)) && _reactNative.Platform.OS === 'ios' && descriptor.options.header === undefined ? 'float' : 'screen');
|
|
170
|
-
const isRTL = props.direction === 'rtl';
|
|
171
|
-
const scene = {
|
|
172
|
-
route,
|
|
173
|
-
descriptor: {
|
|
174
|
-
...descriptor,
|
|
175
|
-
options: {
|
|
176
|
-
...descriptor.options,
|
|
177
|
-
animation,
|
|
178
|
-
cardOverlayEnabled,
|
|
179
|
-
cardStyleInterpolator,
|
|
180
|
-
gestureDirection,
|
|
181
|
-
gestureEnabled,
|
|
182
|
-
headerStyleInterpolator,
|
|
183
|
-
transitionSpec,
|
|
184
|
-
headerMode
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
progress: {
|
|
188
|
-
current: getProgressFromGesture(currentGesture, state.layout, descriptor, isRTL),
|
|
189
|
-
next: nextGesture && nextDescriptor?.options.presentation !== 'transparentModal' ? getProgressFromGesture(nextGesture, state.layout, nextDescriptor, isRTL) : undefined,
|
|
190
|
-
previous: previousGesture ? getProgressFromGesture(previousGesture, state.layout, previousDescriptor, isRTL) : undefined
|
|
191
|
-
},
|
|
192
|
-
__memo: [state.layout, descriptor, nextDescriptor, previousDescriptor, currentGesture, nextGesture, previousGesture]
|
|
193
|
-
};
|
|
194
|
-
if (oldScene && scene.__memo.every((it, i) => {
|
|
195
|
-
// @ts-expect-error: we haven't added __memo to the annotation to prevent usage elsewhere
|
|
196
|
-
return oldScene.__memo[i] === it;
|
|
197
|
-
})) {
|
|
198
|
-
return oldScene;
|
|
199
|
-
}
|
|
200
|
-
return scene;
|
|
201
|
-
});
|
|
202
|
-
return {
|
|
203
|
-
routes: props.routes,
|
|
204
|
-
scenes,
|
|
205
|
-
gestures,
|
|
206
|
-
descriptors: props.descriptors,
|
|
207
|
-
headerHeights: getHeaderHeights(scenes, props.insets, props.isParentHeaderShown, props.isParentModal, state.layout, state.headerHeights)
|
|
208
|
-
};
|
|
209
|
-
}
|
|
210
|
-
constructor(props) {
|
|
211
|
-
super(props);
|
|
212
|
-
this.state = {
|
|
213
|
-
routes: [],
|
|
214
|
-
scenes: [],
|
|
215
|
-
gestures: {},
|
|
216
|
-
layout: _elements.SafeAreaProviderCompat.initialMetrics.frame,
|
|
217
|
-
descriptors: this.props.descriptors,
|
|
218
|
-
// Used when card's header is null and mode is float to make transition
|
|
219
|
-
// between screens with headers and those without headers smooth.
|
|
220
|
-
// This is not a great heuristic here. We don't know synchronously
|
|
221
|
-
// on mount what the header height is so we have just used the most
|
|
222
|
-
// common cases here.
|
|
223
|
-
headerHeights: {}
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
handleLayout = e => {
|
|
227
|
-
const {
|
|
228
|
-
height,
|
|
229
|
-
width
|
|
230
|
-
} = e.nativeEvent.layout;
|
|
231
|
-
const layout = {
|
|
232
|
-
width,
|
|
233
|
-
height
|
|
234
|
-
};
|
|
235
|
-
this.setState((state, props) => {
|
|
236
|
-
if (height === state.layout.height && width === state.layout.width) {
|
|
237
|
-
return null;
|
|
238
|
-
}
|
|
239
|
-
return {
|
|
240
|
-
layout,
|
|
241
|
-
headerHeights: getHeaderHeights(state.scenes, props.insets, props.isParentHeaderShown, props.isParentModal, layout, state.headerHeights)
|
|
242
|
-
};
|
|
243
|
-
});
|
|
244
|
-
};
|
|
245
|
-
handleHeaderLayout = ({
|
|
246
|
-
route,
|
|
247
|
-
height
|
|
248
|
-
}) => {
|
|
249
|
-
this.setState(({
|
|
250
|
-
headerHeights
|
|
251
|
-
}) => {
|
|
252
|
-
const previousHeight = headerHeights[route.key];
|
|
253
|
-
if (previousHeight === height) {
|
|
254
|
-
return null;
|
|
255
|
-
}
|
|
256
|
-
return {
|
|
257
|
-
headerHeights: {
|
|
258
|
-
...headerHeights,
|
|
259
|
-
[route.key]: height
|
|
260
|
-
}
|
|
261
|
-
};
|
|
262
|
-
});
|
|
263
|
-
};
|
|
264
|
-
getFocusedRoute = () => {
|
|
265
|
-
const {
|
|
266
|
-
state
|
|
267
|
-
} = this.props;
|
|
268
|
-
return state.routes[state.index];
|
|
269
|
-
};
|
|
270
|
-
getPreviousScene = ({
|
|
271
|
-
route
|
|
272
|
-
}) => {
|
|
273
|
-
const {
|
|
274
|
-
getPreviousRoute
|
|
275
|
-
} = this.props;
|
|
276
|
-
const {
|
|
277
|
-
scenes
|
|
278
|
-
} = this.state;
|
|
279
|
-
const previousRoute = getPreviousRoute({
|
|
280
|
-
route
|
|
281
|
-
});
|
|
282
|
-
if (previousRoute) {
|
|
283
|
-
const previousScene = scenes.find(scene => scene.descriptor.route.key === previousRoute.key);
|
|
284
|
-
return previousScene;
|
|
285
|
-
}
|
|
286
|
-
return undefined;
|
|
287
|
-
};
|
|
288
|
-
render() {
|
|
289
|
-
const {
|
|
290
|
-
insets,
|
|
291
|
-
state,
|
|
292
|
-
routes,
|
|
293
|
-
openingRouteKeys,
|
|
294
|
-
closingRouteKeys,
|
|
295
|
-
onOpenRoute,
|
|
296
|
-
onCloseRoute,
|
|
297
|
-
renderHeader,
|
|
298
|
-
isParentHeaderShown,
|
|
299
|
-
isParentModal,
|
|
300
|
-
onTransitionStart,
|
|
301
|
-
onTransitionEnd,
|
|
302
|
-
onGestureStart,
|
|
303
|
-
onGestureEnd,
|
|
304
|
-
onGestureCancel,
|
|
305
|
-
detachInactiveScreens = _reactNative.Platform.OS === 'web' || _reactNative.Platform.OS === 'android' || _reactNative.Platform.OS === 'ios'
|
|
306
|
-
} = this.props;
|
|
307
|
-
const {
|
|
308
|
-
scenes,
|
|
309
|
-
layout,
|
|
310
|
-
gestures,
|
|
311
|
-
headerHeights
|
|
312
|
-
} = this.state;
|
|
313
|
-
const focusedRoute = state.routes[state.index];
|
|
314
|
-
const focusedHeaderHeight = headerHeights[focusedRoute.key];
|
|
315
|
-
const isFloatHeaderAbsolute = this.state.scenes.slice(-2).some(scene => {
|
|
316
|
-
const options = scene.descriptor.options ?? {};
|
|
317
|
-
const {
|
|
318
|
-
headerMode,
|
|
319
|
-
headerTransparent,
|
|
320
|
-
headerShown = true
|
|
321
|
-
} = options;
|
|
322
|
-
if (headerTransparent || headerShown === false || headerMode === 'screen') {
|
|
323
|
-
return true;
|
|
324
|
-
}
|
|
325
|
-
return false;
|
|
326
|
-
});
|
|
327
|
-
let activeScreensLimit = 1;
|
|
328
|
-
for (let i = scenes.length - 1; i >= 0; i--) {
|
|
329
|
-
const {
|
|
330
|
-
options
|
|
331
|
-
} = scenes[i].descriptor;
|
|
332
|
-
const {
|
|
333
|
-
// By default, we don't want to detach the previous screen of the active one for modals
|
|
334
|
-
detachPreviousScreen = options.presentation === 'transparentModal' ? false : getIsModalPresentation(options.cardStyleInterpolator) ? i !== (0, _findLastIndex.findLastIndex)(scenes, scene => {
|
|
335
|
-
const {
|
|
336
|
-
cardStyleInterpolator
|
|
337
|
-
} = scene.descriptor.options;
|
|
338
|
-
return cardStyleInterpolator === _CardStyleInterpolators.forModalPresentationIOS || cardStyleInterpolator?.name === 'forModalPresentationIOS';
|
|
339
|
-
}) : true
|
|
340
|
-
} = options;
|
|
341
|
-
if (detachPreviousScreen === false) {
|
|
342
|
-
activeScreensLimit++;
|
|
343
|
-
} else {
|
|
344
|
-
// Check at least last 2 screens before stopping
|
|
345
|
-
// This will make sure that screen isn't detached when another screen is animating on top of the transparent one
|
|
346
|
-
// For example, (Opaque -> Transparent -> Opaque)
|
|
347
|
-
if (i <= scenes.length - 2) {
|
|
348
|
-
break;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
const floatingHeader = /*#__PURE__*/(0, _jsxRuntime.jsx)(React.Fragment, {
|
|
353
|
-
children: renderHeader({
|
|
354
|
-
mode: 'float',
|
|
355
|
-
layout,
|
|
356
|
-
scenes,
|
|
357
|
-
getPreviousScene: this.getPreviousScene,
|
|
358
|
-
getFocusedRoute: this.getFocusedRoute,
|
|
359
|
-
onContentHeightChange: this.handleHeaderLayout,
|
|
360
|
-
style: [styles.floating, isFloatHeaderAbsolute && [
|
|
361
|
-
// Without this, the header buttons won't be touchable on Android when headerTransparent: true
|
|
362
|
-
{
|
|
363
|
-
height: focusedHeaderHeight
|
|
364
|
-
}, styles.absolute]]
|
|
365
|
-
})
|
|
366
|
-
}, "header");
|
|
367
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
368
|
-
style: styles.container,
|
|
369
|
-
children: [isFloatHeaderAbsolute ? null : floatingHeader, /*#__PURE__*/(0, _jsxRuntime.jsx)(_Screens.MaybeScreenContainer, {
|
|
370
|
-
enabled: detachInactiveScreens,
|
|
371
|
-
style: styles.container,
|
|
372
|
-
onLayout: this.handleLayout,
|
|
373
|
-
children: [...routes, ...state.preloadedRoutes].map((route, index) => {
|
|
374
|
-
const focused = focusedRoute.key === route.key;
|
|
375
|
-
const gesture = gestures[route.key];
|
|
376
|
-
const scene = scenes[index];
|
|
377
|
-
// It is possible that for a short period the route appears in both arrays.
|
|
378
|
-
// Particularly, if the screen is removed with `retain`, then it needs a moment to execute the animation.
|
|
379
|
-
// However, due to the router action, it immediately populates the `preloadedRoutes` array.
|
|
380
|
-
// Practically, the logic below takes care that it is rendered only once.
|
|
381
|
-
const isPreloaded = state.preloadedRoutes.includes(route) && !routes.includes(route);
|
|
382
|
-
if (state.preloadedRoutes.includes(route) && routes.includes(route) && index >= routes.length) {
|
|
383
|
-
return null;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
// For the screens that shouldn't be active, the value is 0
|
|
387
|
-
// For those that should be active, but are not the top screen, the value is 1
|
|
388
|
-
// For those on top of the stack and with interaction enabled, the value is 2
|
|
389
|
-
// For the old implementation, it stays the same it was
|
|
390
|
-
let isScreenActive = 1;
|
|
391
|
-
if (index < routes.length - activeScreensLimit - 1 || isPreloaded) {
|
|
392
|
-
// screen should be inactive because it is too deep in the stack
|
|
393
|
-
isScreenActive = STATE_INACTIVE;
|
|
394
|
-
} else {
|
|
395
|
-
const sceneForActivity = scenes[routes.length - 1];
|
|
396
|
-
const outputValue = index === routes.length - 1 ? STATE_ON_TOP // the screen is on top after the transition
|
|
397
|
-
: index >= routes.length - activeScreensLimit ? STATE_TRANSITIONING_OR_BELOW_TOP // the screen should stay active after the transition, it is not on top but is in activeLimit
|
|
398
|
-
: STATE_INACTIVE; // the screen should be active only during the transition, it is at the edge of activeLimit
|
|
399
|
-
isScreenActive = sceneForActivity ? sceneForActivity.progress.current.interpolate({
|
|
400
|
-
inputRange: [0, 1 - EPSILON, 1],
|
|
401
|
-
outputRange: [1, 1, outputValue],
|
|
402
|
-
extrapolate: 'clamp'
|
|
403
|
-
}) : STATE_TRANSITIONING_OR_BELOW_TOP;
|
|
404
|
-
}
|
|
405
|
-
const {
|
|
406
|
-
headerShown = true,
|
|
407
|
-
headerTransparent,
|
|
408
|
-
freezeOnBlur,
|
|
409
|
-
autoHideHomeIndicator
|
|
410
|
-
} = scene.descriptor.options;
|
|
411
|
-
const safeAreaInsetTop = insets.top;
|
|
412
|
-
const safeAreaInsetRight = insets.right;
|
|
413
|
-
const safeAreaInsetBottom = insets.bottom;
|
|
414
|
-
const safeAreaInsetLeft = insets.left;
|
|
415
|
-
const headerHeight = headerShown !== false ? headerHeights[route.key] : 0;
|
|
416
|
-
|
|
417
|
-
// Start from current card and count backwards the number of cards with same interpolation
|
|
418
|
-
const interpolationIndex = getInterpolationIndex(scenes, index);
|
|
419
|
-
const isModal = getIsModal(scene, interpolationIndex, isParentModal);
|
|
420
|
-
const isNextScreenTransparent = scenes[index + 1]?.descriptor.options.presentation === 'transparentModal';
|
|
421
|
-
const detachCurrentScreen = scenes[index + 1]?.descriptor.options.detachPreviousScreen !== false;
|
|
422
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Screens.MaybeScreen, {
|
|
423
|
-
style: [_reactNative.StyleSheet.absoluteFill],
|
|
424
|
-
enabled: detachInactiveScreens,
|
|
425
|
-
active: isScreenActive,
|
|
426
|
-
freezeOnBlur: freezeOnBlur,
|
|
427
|
-
shouldFreeze: isScreenActive === STATE_INACTIVE && !isPreloaded,
|
|
428
|
-
homeIndicatorHidden: autoHideHomeIndicator,
|
|
429
|
-
pointerEvents: "box-none",
|
|
430
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CardContainer.CardContainer, {
|
|
431
|
-
index: index,
|
|
432
|
-
interpolationIndex: interpolationIndex,
|
|
433
|
-
modal: isModal,
|
|
434
|
-
active: index === routes.length - 1,
|
|
435
|
-
focused: focused,
|
|
436
|
-
opening: openingRouteKeys.includes(route.key),
|
|
437
|
-
closing: closingRouteKeys.includes(route.key),
|
|
438
|
-
layout: layout,
|
|
439
|
-
gesture: gesture,
|
|
440
|
-
scene: scene,
|
|
441
|
-
safeAreaInsetTop: safeAreaInsetTop,
|
|
442
|
-
safeAreaInsetRight: safeAreaInsetRight,
|
|
443
|
-
safeAreaInsetBottom: safeAreaInsetBottom,
|
|
444
|
-
safeAreaInsetLeft: safeAreaInsetLeft,
|
|
445
|
-
onGestureStart: onGestureStart,
|
|
446
|
-
onGestureCancel: onGestureCancel,
|
|
447
|
-
onGestureEnd: onGestureEnd,
|
|
448
|
-
headerHeight: headerHeight,
|
|
449
|
-
isParentHeaderShown: isParentHeaderShown,
|
|
450
|
-
onHeaderHeightChange: this.handleHeaderLayout,
|
|
451
|
-
getPreviousScene: this.getPreviousScene,
|
|
452
|
-
getFocusedRoute: this.getFocusedRoute,
|
|
453
|
-
hasAbsoluteFloatHeader: isFloatHeaderAbsolute && !headerTransparent,
|
|
454
|
-
renderHeader: renderHeader,
|
|
455
|
-
onOpenRoute: onOpenRoute,
|
|
456
|
-
onCloseRoute: onCloseRoute,
|
|
457
|
-
onTransitionStart: onTransitionStart,
|
|
458
|
-
onTransitionEnd: onTransitionEnd,
|
|
459
|
-
isNextScreenTransparent: isNextScreenTransparent,
|
|
460
|
-
detachCurrentScreen: detachCurrentScreen,
|
|
461
|
-
preloaded: isPreloaded
|
|
462
|
-
})
|
|
463
|
-
}, route.key);
|
|
464
|
-
})
|
|
465
|
-
}), isFloatHeaderAbsolute ? floatingHeader : null]
|
|
466
|
-
});
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
exports.CardStack = CardStack;
|
|
470
|
-
const styles = _reactNative.StyleSheet.create({
|
|
471
|
-
container: {
|
|
472
|
-
flex: 1
|
|
473
|
-
},
|
|
474
|
-
absolute: {
|
|
475
|
-
position: 'absolute',
|
|
476
|
-
top: 0,
|
|
477
|
-
start: 0,
|
|
478
|
-
end: 0
|
|
479
|
-
},
|
|
480
|
-
floating: {
|
|
481
|
-
zIndex: 1
|
|
482
|
-
}
|
|
483
|
-
});
|
|
484
|
-
//# sourceMappingURL=CardStack.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_elements","require","React","_interopRequireWildcard","_reactNative","_CardStyleInterpolators","_TransitionPresets","_findLastIndex","_getDistanceForDirection","_getModalRoutesKeys","_Screens","_CardContainer","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","NAMED_TRANSITIONS_PRESETS","DefaultTransition","fade","ModalFadeTransition","fade_from_bottom","FadeFromBottomAndroid","fade_from_right","FadeFromRightAndroid","none","reveal_from_bottom","RevealFromBottomAndroid","scale_from_center","ScaleFromCenterAndroid","slide_from_left","SlideFromLeftIOS","slide_from_right","SlideFromRightIOS","slide_from_bottom","Platform","select","ios","ModalSlideFromBottomIOS","BottomSheetAndroid","EPSILON","STATE_INACTIVE","STATE_TRANSITIONING_OR_BELOW_TOP","STATE_ON_TOP","FALLBACK_DESCRIPTOR","freeze","options","getInterpolationIndex","scenes","index","cardStyleInterpolator","descriptor","interpolationIndex","cardStyleInterpolatorCurrent","getIsModalPresentation","forModalPresentationIOS","name","getIsModal","scene","isParentModal","isModalPresentation","isModal","getHeaderHeights","insets","isParentHeaderShown","layout","previous","reduce","acc","curr","headerStatusBarHeight","top","headerStyle","style","StyleSheet","flatten","height","route","key","getDefaultHeaderHeight","getDistanceFromOptions","isRTL","gestureDirection","getDistanceForDirection","defaultGestureDirection","presentation","ModalTransition","animation","getProgressFromGesture","gesture","distance","width","Math","max","interpolate","inputRange","outputRange","CardStack","Component","getDerivedStateFromProps","props","state","routes","descriptors","gestures","preloadedRoutes","preloadedDescriptors","Animated","Value","openingRouteKeys","includes","direction","modalRouteKeys","getModalRouteKeys","map","self","isPreloaded","previousRoute","undefined","nextRoute","oldScene","currentGesture","previousGesture","nextGesture","nextDescriptor","previousDescriptor","optionsForTransitionConfig","length","excludedPlatforms","OS","isAnimationEnabled","transitionPreset","gestureEnabled","transitionSpec","forNoAnimationCard","headerStyleInterpolator","cardOverlayEnabled","headerMode","header","progress","current","next","__memo","every","it","headerHeights","constructor","SafeAreaProviderCompat","initialMetrics","frame","handleLayout","nativeEvent","setState","handleHeaderLayout","previousHeight","getFocusedRoute","getPreviousScene","getPreviousRoute","previousScene","find","render","closingRouteKeys","onOpenRoute","onCloseRoute","renderHeader","onTransitionStart","onTransitionEnd","onGestureStart","onGestureEnd","onGestureCancel","detachInactiveScreens","focusedRoute","focusedHeaderHeight","isFloatHeaderAbsolute","slice","some","headerTransparent","headerShown","activeScreensLimit","detachPreviousScreen","findLastIndex","floatingHeader","jsx","Fragment","children","mode","onContentHeightChange","styles","floating","absolute","jsxs","View","container","MaybeScreenContainer","enabled","onLayout","focused","isScreenActive","sceneForActivity","outputValue","extrapolate","freezeOnBlur","autoHideHomeIndicator","safeAreaInsetTop","safeAreaInsetRight","right","safeAreaInsetBottom","bottom","safeAreaInsetLeft","left","headerHeight","isNextScreenTransparent","detachCurrentScreen","MaybeScreen","absoluteFill","active","shouldFreeze","homeIndicatorHidden","pointerEvents","CardContainer","modal","opening","closing","onHeaderHeightChange","hasAbsoluteFloatHeader","preloaded","exports","create","flex","position","start","end","zIndex"],"sourceRoot":"../../../../src","sources":["views/Stack/CardStack.tsx"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAUA,IAAAC,KAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AASA,IAAAI,uBAAA,GAAAJ,OAAA;AAIA,IAAAK,kBAAA,GAAAL,OAAA;AAuBA,IAAAM,cAAA,GAAAN,OAAA;AACA,IAAAO,wBAAA,GAAAP,OAAA;AACA,IAAAQ,mBAAA,GAAAR,OAAA;AAEA,IAAAS,QAAA,GAAAT,OAAA;AACA,IAAAU,cAAA,GAAAV,OAAA;AAAgD,IAAAW,WAAA,GAAAX,OAAA;AAAA,SAAAY,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAX,wBAAAW,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN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