@react-navigation/stack 7.2.9 → 7.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/lib/module/utils/useKeyboardManager.js +1 -1
  2. package/lib/module/utils/useKeyboardManager.js.map +1 -1
  3. package/lib/module/views/Header/HeaderContainer.js +1 -2
  4. package/lib/module/views/Header/HeaderContainer.js.map +1 -1
  5. package/lib/module/views/Stack/CardContainer.js +1 -2
  6. package/lib/module/views/Stack/CardContainer.js.map +1 -1
  7. package/lib/typescript/src/index.d.ts +1 -1
  8. package/lib/typescript/src/index.d.ts.map +1 -1
  9. package/lib/typescript/src/utils/getModalRoutesKeys.d.ts.map +1 -1
  10. package/lib/typescript/src/utils/memoize.d.ts.map +1 -1
  11. package/lib/typescript/src/utils/useKeyboardManager.d.ts.map +1 -1
  12. package/lib/typescript/src/views/Header/HeaderContainer.d.ts.map +1 -1
  13. package/lib/typescript/src/views/Screens.d.ts.map +1 -1
  14. package/lib/typescript/src/views/Stack/CardContainer.d.ts.map +1 -1
  15. package/package.json +22 -20
  16. package/src/index.tsx +2 -0
  17. package/src/utils/useKeyboardManager.tsx +4 -6
  18. package/src/views/Header/HeaderContainer.tsx +1 -4
  19. package/src/views/Stack/CardContainer.tsx +2 -3
  20. package/lib/commonjs/TransitionConfigs/CardStyleInterpolators.js +0 -407
  21. package/lib/commonjs/TransitionConfigs/CardStyleInterpolators.js.map +0 -1
  22. package/lib/commonjs/TransitionConfigs/HeaderStyleInterpolators.js +0 -271
  23. package/lib/commonjs/TransitionConfigs/HeaderStyleInterpolators.js.map +0 -1
  24. package/lib/commonjs/TransitionConfigs/TransitionPresets.js +0 -156
  25. package/lib/commonjs/TransitionConfigs/TransitionPresets.js.map +0 -1
  26. package/lib/commonjs/TransitionConfigs/TransitionSpecs.js +0 -128
  27. package/lib/commonjs/TransitionConfigs/TransitionSpecs.js.map +0 -1
  28. package/lib/commonjs/index.js +0 -68
  29. package/lib/commonjs/index.js.map +0 -1
  30. package/lib/commonjs/navigators/createStackNavigator.js +0 -75
  31. package/lib/commonjs/navigators/createStackNavigator.js.map +0 -1
  32. package/lib/commonjs/package.json +0 -1
  33. package/lib/commonjs/types.js +0 -6
  34. package/lib/commonjs/types.js.map +0 -1
  35. package/lib/commonjs/utils/CardAnimationContext.js +0 -11
  36. package/lib/commonjs/utils/CardAnimationContext.js.map +0 -1
  37. package/lib/commonjs/utils/GestureHandlerRefContext.js +0 -11
  38. package/lib/commonjs/utils/GestureHandlerRefContext.js.map +0 -1
  39. package/lib/commonjs/utils/ModalPresentationContext.js +0 -11
  40. package/lib/commonjs/utils/ModalPresentationContext.js.map +0 -1
  41. package/lib/commonjs/utils/conditional.js +0 -32
  42. package/lib/commonjs/utils/conditional.js.map +0 -1
  43. package/lib/commonjs/utils/findLastIndex.js +0 -15
  44. package/lib/commonjs/utils/findLastIndex.js.map +0 -1
  45. package/lib/commonjs/utils/getDistanceForDirection.js +0 -19
  46. package/lib/commonjs/utils/getDistanceForDirection.js.map +0 -1
  47. package/lib/commonjs/utils/getInvertedMultiplier.js +0 -19
  48. package/lib/commonjs/utils/getInvertedMultiplier.js.map +0 -1
  49. package/lib/commonjs/utils/getModalRoutesKeys.js +0 -17
  50. package/lib/commonjs/utils/getModalRoutesKeys.js.map +0 -1
  51. package/lib/commonjs/utils/getShadowStyle.js +0 -29
  52. package/lib/commonjs/utils/getShadowStyle.js.map +0 -1
  53. package/lib/commonjs/utils/memoize.js +0 -33
  54. package/lib/commonjs/utils/memoize.js.map +0 -1
  55. package/lib/commonjs/utils/throttle.js +0 -18
  56. package/lib/commonjs/utils/throttle.js.map +0 -1
  57. package/lib/commonjs/utils/useCardAnimation.js +0 -18
  58. package/lib/commonjs/utils/useCardAnimation.js.map +0 -1
  59. package/lib/commonjs/utils/useGestureHandlerRef.js +0 -18
  60. package/lib/commonjs/utils/useGestureHandlerRef.js.map +0 -1
  61. package/lib/commonjs/utils/useKeyboardManager.js +0 -96
  62. package/lib/commonjs/utils/useKeyboardManager.js.map +0 -1
  63. package/lib/commonjs/views/GestureHandler.android.js +0 -17
  64. package/lib/commonjs/views/GestureHandler.android.js.map +0 -1
  65. package/lib/commonjs/views/GestureHandler.ios.js +0 -17
  66. package/lib/commonjs/views/GestureHandler.ios.js.map +0 -1
  67. package/lib/commonjs/views/GestureHandler.js +0 -27
  68. package/lib/commonjs/views/GestureHandler.js.map +0 -1
  69. package/lib/commonjs/views/GestureHandlerNative.js +0 -35
  70. package/lib/commonjs/views/GestureHandlerNative.js.map +0 -1
  71. package/lib/commonjs/views/Header/Header.js +0 -62
  72. package/lib/commonjs/views/Header/Header.js.map +0 -1
  73. package/lib/commonjs/views/Header/HeaderContainer.js +0 -135
  74. package/lib/commonjs/views/Header/HeaderContainer.js.map +0 -1
  75. package/lib/commonjs/views/Header/HeaderSegment.js +0 -149
  76. package/lib/commonjs/views/Header/HeaderSegment.js.map +0 -1
  77. package/lib/commonjs/views/Screens.js +0 -50
  78. package/lib/commonjs/views/Screens.js.map +0 -1
  79. package/lib/commonjs/views/Stack/Card.js +0 -496
  80. package/lib/commonjs/views/Stack/Card.js.map +0 -1
  81. package/lib/commonjs/views/Stack/CardContainer.js +0 -282
  82. package/lib/commonjs/views/Stack/CardContainer.js.map +0 -1
  83. package/lib/commonjs/views/Stack/CardSheet.js +0 -88
  84. package/lib/commonjs/views/Stack/CardSheet.js.map +0 -1
  85. package/lib/commonjs/views/Stack/CardStack.js +0 -484
  86. package/lib/commonjs/views/Stack/CardStack.js.map +0 -1
  87. package/lib/commonjs/views/Stack/StackView.js +0 -346
  88. package/lib/commonjs/views/Stack/StackView.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNative","require","add","multiply","Animated","IPAD_MINI_MEDIUM_WIDTH","forUIKit","current","next","direction","layouts","defaultOffset","leftSpacing","Platform","OS","screen","width","leftLabelOffset","leftLabel","titleLeftOffset","title","rightOffset","multiplier","progress","interpolate","inputRange","outputRange","extrapolate","leftButtonStyle","opacity","leftLabelStyle","transform","translateX","rightButtonStyle","titleStyle","backgroundStyle","forFade","forSlideLeft","isRTL","forSlideRight","forSlideUp","header","translateY","height","forNoAnimation"],"sourceRoot":"../../../src","sources":["TransitionConfigs/HeaderStyleInterpolators.tsx"],"mappings":";;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAOA,MAAM;EAAEC,GAAG;EAAEC;AAAS,CAAC,GAAGC,qBAAQ;;AAElC;AACA;AACA,MAAMC,sBAAsB,GAAG,GAAG;;AAElC;AACA;AACA;AACO,SAASC,QAAQA,CAAC;EACvBC,OAAO;EACPC,IAAI;EACJC,SAAS;EACTC;AAC6B,CAAC,EAAgC;EAC9D,MAAMC,aAAa,GAAG,GAAG;EACzB,MAAMC,WAAW,GACf,EAAE,IACDC,qBAAQ,CAACC,EAAE,KAAK,KAAK,IAAIJ,OAAO,CAACK,MAAM,CAACC,KAAK,IAAIX,sBAAsB,GACpE,CAAC,CAAC;EAAA,EACF,CAAC,CAAC;;EAER;EACA;EACA;EACA;EACA;EACA,MAAMY,eAAe,GAAGP,OAAO,CAACQ,SAAS,GACrC,CAACR,OAAO,CAACK,MAAM,CAACC,KAAK,GAAGN,OAAO,CAACQ,SAAS,CAACF,KAAK,IAAI,CAAC,GAAGJ,WAAW,GAClED,aAAa;EACjB,MAAMQ,eAAe,GAAGT,OAAO,CAACU,KAAK,GACjC,CAACV,OAAO,CAACK,MAAM,CAACC,KAAK,GAAGN,OAAO,CAACU,KAAK,CAACJ,KAAK,IAAI,CAAC,GAAGJ,WAAW,GAC9DD,aAAa;;EAEjB;EACA;EACA,MAAMU,WAAW,GAAGX,OAAO,CAACK,MAAM,CAACC,KAAK,GAAG,CAAC;EAE5C,MAAMM,UAAU,GAAGb,SAAS,KAAK,KAAK,GAAG,CAAC,CAAC,GAAG,CAAC;EAE/C,MAAMc,QAAQ,GAAGrB,GAAG,CAClBK,OAAO,CAACgB,QAAQ,CAACC,WAAW,CA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EF;IAAU,CAAC;IAC/BG,UAAU,EAAE;MAAEH;IAAU,CAAC;IACzBI,eAAe,EAAE;MAAEJ;IAAU;EAC/B,CAAC;AACH;AAEO,SAASa,cAAcA,CAAA,EAAiC;EAC7D,OAAO,CAAC,CAAC;AACX","ignoreList":[]}
@@ -1,156 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SlideFromRightIOS = exports.SlideFromLeftIOS = exports.ScaleFromCenterAndroid = exports.RevealFromBottomAndroid = exports.ModalTransition = exports.ModalSlideFromBottomIOS = exports.ModalPresentationIOS = exports.ModalFadeTransition = exports.FadeFromRightAndroid = exports.FadeFromBottomAndroid = exports.DefaultTransition = exports.BottomSheetAndroid = void 0;
7
- var _reactNative = require("react-native");
8
- var _CardStyleInterpolators = require("./CardStyleInterpolators.js");
9
- var _HeaderStyleInterpolators = require("./HeaderStyleInterpolators.js");
10
- var _TransitionSpecs = require("./TransitionSpecs.js");
11
- const ANDROID_VERSION_PIE = 28;
12
- const ANDROID_VERSION_10 = 29;
13
- const ANDROID_VERSION_14 = 34;
14
-
15
- /**
16
- * Standard iOS navigation transition.
17
- */
18
- const SlideFromRightIOS = exports.SlideFromRightIOS = {
19
- gestureDirection: 'horizontal',
20
- transitionSpec: {
21
- open: _TransitionSpecs.TransitionIOSSpec,
22
- close: _TransitionSpecs.TransitionIOSSpec
23
- },
24
- cardStyleInterpolator: _CardStyleInterpolators.forHorizontalIOS,
25
- headerStyleInterpolator: _HeaderStyleInterpolators.forFade
26
- };
27
-
28
- /**
29
- * Standard iOS navigation transition for modals.
30
- */
31
- const ModalSlideFromBottomIOS = exports.ModalSlideFromBottomIOS = {
32
- gestureDirection: 'vertical',
33
- transitionSpec: {
34
- open: _TransitionSpecs.TransitionIOSSpec,
35
- close: _TransitionSpecs.TransitionIOSSpec
36
- },
37
- cardStyleInterpolator: _CardStyleInterpolators.forVerticalIOS,
38
- headerStyleInterpolator: _HeaderStyleInterpolators.forFade
39
- };
40
-
41
- /**
42
- * Standard iOS modal presentation style (introduced in iOS 13).
43
- */
44
- const ModalPresentationIOS = exports.ModalPresentationIOS = {
45
- gestureDirection: 'vertical',
46
- transitionSpec: {
47
- open: _TransitionSpecs.TransitionIOSSpec,
48
- close: _TransitionSpecs.TransitionIOSSpec
49
- },
50
- cardStyleInterpolator: _CardStyleInterpolators.forModalPresentationIOS,
51
- headerStyleInterpolator: _HeaderStyleInterpolators.forFade
52
- };
53
-
54
- /**
55
- * Standard Android navigation transition when opening or closing an Activity on Android < 9 (Oreo).
56
- */
57
- const FadeFromBottomAndroid = exports.FadeFromBottomAndroid = {
58
- gestureDirection: 'vertical',
59
- transitionSpec: {
60
- open: _TransitionSpecs.FadeInFromBottomAndroidSpec,
61
- close: _TransitionSpecs.FadeOutToBottomAndroidSpec
62
- },
63
- cardStyleInterpolator: _CardStyleInterpolators.forFadeFromBottomAndroid,
64
- headerStyleInterpolator: _HeaderStyleInterpolators.forFade
65
- };
66
-
67
- /**
68
- * Standard Android navigation transition when opening or closing an Activity on Android 9 (Pie).
69
- */
70
- const RevealFromBottomAndroid = exports.RevealFromBottomAndroid = {
71
- gestureDirection: 'vertical',
72
- transitionSpec: {
73
- open: _TransitionSpecs.RevealFromBottomAndroidSpec,
74
- close: _TransitionSpecs.RevealFromBottomAndroidSpec
75
- },
76
- cardStyleInterpolator: _CardStyleInterpolators.forRevealFromBottomAndroid,
77
- headerStyleInterpolator: _HeaderStyleInterpolators.forFade
78
- };
79
-
80
- /**
81
- * Standard Android navigation transition when opening or closing an Activity on Android 10 (Q).
82
- */
83
- const ScaleFromCenterAndroid = exports.ScaleFromCenterAndroid = {
84
- gestureDirection: 'horizontal',
85
- transitionSpec: {
86
- open: _TransitionSpecs.ScaleFromCenterAndroidSpec,
87
- close: _TransitionSpecs.ScaleFromCenterAndroidSpec
88
- },
89
- cardStyleInterpolator: _CardStyleInterpolators.forScaleFromCenterAndroid,
90
- headerStyleInterpolator: _HeaderStyleInterpolators.forFade
91
- };
92
-
93
- /**
94
- * Standard Android navigation transition when opening or closing an Activity on Android 14.
95
- */
96
- const FadeFromRightAndroid = exports.FadeFromRightAndroid = {
97
- gestureDirection: 'horizontal',
98
- transitionSpec: {
99
- open: _TransitionSpecs.FadeInFromBottomAndroidSpec,
100
- close: _TransitionSpecs.FadeOutToBottomAndroidSpec
101
- },
102
- cardStyleInterpolator: _CardStyleInterpolators.forFadeFromRightAndroid,
103
- headerStyleInterpolator: _HeaderStyleInterpolators.forFade
104
- };
105
-
106
- /**
107
- * Standard bottom sheet slide transition for Android 10.
108
- */
109
- const BottomSheetAndroid = exports.BottomSheetAndroid = {
110
- gestureDirection: 'vertical',
111
- transitionSpec: {
112
- open: _TransitionSpecs.BottomSheetSlideInSpec,
113
- close: _TransitionSpecs.BottomSheetSlideOutSpec
114
- },
115
- cardStyleInterpolator: _CardStyleInterpolators.forBottomSheetAndroid,
116
- headerStyleInterpolator: _HeaderStyleInterpolators.forFade
117
- };
118
-
119
- /**
120
- * Fade transition for transparent modals.
121
- */
122
- const ModalFadeTransition = exports.ModalFadeTransition = {
123
- gestureDirection: 'vertical',
124
- transitionSpec: {
125
- open: _TransitionSpecs.BottomSheetSlideInSpec,
126
- close: _TransitionSpecs.BottomSheetSlideOutSpec
127
- },
128
- cardStyleInterpolator: _CardStyleInterpolators.forFadeFromCenter,
129
- headerStyleInterpolator: _HeaderStyleInterpolators.forFade
130
- };
131
-
132
- /**
133
- * Default navigation transition for the current platform.
134
- */
135
- const DefaultTransition = exports.DefaultTransition = _reactNative.Platform.select({
136
- ios: SlideFromRightIOS,
137
- android: Number(_reactNative.Platform.Version) >= ANDROID_VERSION_14 ? FadeFromRightAndroid : Number(_reactNative.Platform.Version) >= ANDROID_VERSION_10 ? ScaleFromCenterAndroid : Number(_reactNative.Platform.Version) >= ANDROID_VERSION_PIE ? RevealFromBottomAndroid : FadeFromBottomAndroid,
138
- default: ScaleFromCenterAndroid
139
- });
140
-
141
- /**
142
- * Default modal transition for the current platform.
143
- */
144
- const ModalTransition = exports.ModalTransition = _reactNative.Platform.select({
145
- ios: ModalPresentationIOS,
146
- default: BottomSheetAndroid
147
- });
148
-
149
- /**
150
- * Slide from left transition.
151
- */
152
- const SlideFromLeftIOS = exports.SlideFromLeftIOS = {
153
- ...SlideFromRightIOS,
154
- cardStyleInterpolator: _CardStyleInterpolators.forHorizontalIOSInverted
155
- };
156
- //# sourceMappingURL=TransitionPresets.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNative","require","_CardStyleInterpolators","_HeaderStyleInterpolators","_TransitionSpecs","ANDROID_VERSION_PIE","ANDROID_VERSION_10","ANDROID_VERSION_14","SlideFromRightIOS","exports","gestureDirection","transitionSpec","open","TransitionIOSSpec","close","cardStyleInterpolator","forHorizontalIOS","headerStyleInterpolator","forFade","ModalSlideFromBottomIOS","forVerticalIOS","ModalPresentationIOS","forModalPresentationIOS","FadeFromBottomAndroid","FadeInFromBottomAndroidSpec","FadeOutToBottomAndroidSpec","forFadeFromBottomAndroid","RevealFromBottomAndroid","RevealFromBottomAndroidSpec","forRevealFromBottomAndroid","ScaleFromCenterAndroid","ScaleFromCenterAndroidSpec","forScaleFromCenterAndroid","FadeFromRightAndroid","forFadeFromRightAndroid","BottomSheetAndroid","BottomSheetSlideInSpec","BottomSheetSlideOutSpec","forBottomSheetAndroid","ModalFadeTransition","forFadeCard","DefaultTransition","Platform","select","ios","android","Number","Version","default","ModalTransition","SlideFromLeftIOS","forHorizontalIOSInverted"],"sourceRoot":"../../../src","sources":["TransitionConfigs/TransitionPresets.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAGA,IAAAC,uBAAA,GAAAD,OAAA;AAYA,IAAAE,yBAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AAUA,MAAMI,mBAAmB,GAAG,EAAE;AAC9B,MAAMC,kBAAkB,GAAG,EAAE;AAC7B,MAAMC,kBAAkB,GAAG,EA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oB,GACpBa,MAAM,CAACJ,qBAAQ,CAACK,OAAO,CAAC,IAAIzC,kBAAkB,GAC5CwB,sBAAsB,GACtBgB,MAAM,CAACJ,qBAAQ,CAACK,OAAO,CAAC,IAAI1C,mBAAmB,GAC7CsB,uBAAuB,GACvBJ,qBAAqB;EAC/ByB,OAAO,EAAElB;AACX,CAAC,CAAC;;AAEF;AACA;AACA;AACO,MAAMmB,eAAe,GAAAxC,OAAA,CAAAwC,eAAA,GAAGP,qBAAQ,CAACC,MAAM,CAAC;EAC7CC,GAAG,EAAEvB,oBAAoB;EACzB2B,OAAO,EAAEb;AACX,CAAC,CAAC;;AAEF;AACA;AACA;AACO,MAAMe,gBAAkC,GAAAzC,OAAA,CAAAyC,gBAAA,GAAG;EAChD,GAAG1C,iBAAiB;EACpBO,qBAAqB,EAAEoC;AACzB,CAAC","ignoreList":[]}
@@ -1,128 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.TransitionIOSSpec = exports.ScaleFromCenterAndroidSpec = exports.RevealFromBottomAndroidSpec = exports.FadeOutToLeftAndroidSpec = exports.FadeOutToBottomAndroidSpec = exports.FadeInFromRightAndroidSpec = exports.FadeInFromBottomAndroidSpec = exports.BottomSheetSlideOutSpec = exports.BottomSheetSlideInSpec = void 0;
7
- var _reactNative = require("react-native");
8
- /**
9
- * Exact values from UINavigationController's animation configuration.
10
- */
11
- const TransitionIOSSpec = exports.TransitionIOSSpec = {
12
- animation: 'spring',
13
- config: {
14
- stiffness: 1000,
15
- damping: 500,
16
- mass: 3,
17
- overshootClamping: true,
18
- restDisplacementThreshold: 10,
19
- restSpeedThreshold: 10
20
- }
21
- };
22
-
23
- /**
24
- * Configuration for activity open animation from Android Nougat.
25
- * See http://aosp.opersys.com/xref/android-7.1.2_r37/xref/frameworks/base/core/res/res/anim/activity_open_enter.xml
26
- */
27
- const FadeInFromBottomAndroidSpec = exports.FadeInFromBottomAndroidSpec = {
28
- animation: 'timing',
29
- config: {
30
- duration: 350,
31
- easing: _reactNative.Easing.out(_reactNative.Easing.poly(5))
32
- }
33
- };
34
-
35
- /**
36
- * Configuration for activity close animation from Android Nougat.
37
- * See http://aosp.opersys.com/xref/android-7.1.2_r37/xref/frameworks/base/core/res/res/anim/activity_close_exit.xml
38
- */
39
- const FadeOutToBottomAndroidSpec = exports.FadeOutToBottomAndroidSpec = {
40
- animation: 'timing',
41
- config: {
42
- duration: 150,
43
- easing: _reactNative.Easing.in(_reactNative.Easing.linear)
44
- }
45
- };
46
-
47
- /**
48
- * Approximate configuration for activity open animation from Android Pie.
49
- * See http://aosp.opersys.com/xref/android-9.0.0_r47/xref/frameworks/base/core/res/res/anim/activity_open_enter.xml
50
- */
51
- const RevealFromBottomAndroidSpec = exports.RevealFromBottomAndroidSpec = {
52
- animation: 'timing',
53
- config: {
54
- duration: 425,
55
- // This is super rough approximation of the path used for the curve by android
56
- // See http://aosp.opersys.com/xref/android-9.0.0_r47/xref/frameworks/base/core/res/res/interpolator/fast_out_extra_slow_in.xml
57
- easing: _reactNative.Easing.bezier(0.20833, 0.82, 0.25, 1)
58
- }
59
- };
60
-
61
- /**
62
- * Approximate configuration for activity open animation from Android Q.
63
- * See http://aosp.opersys.com/xref/android-10.0.0_r2/xref/frameworks/base/core/res/res/anim/activity_open_enter.xml
64
- */
65
- const ScaleFromCenterAndroidSpec = exports.ScaleFromCenterAndroidSpec = {
66
- animation: 'timing',
67
- config: {
68
- duration: 400,
69
- // This is super rough approximation of the path used for the curve by android
70
- // See http://aosp.opersys.com/xref/android-10.0.0_r2/xref/frameworks/base/core/res/res/interpolator/fast_out_extra_slow_in.xml
71
- easing: _reactNative.Easing.bezier(0.20833, 0.82, 0.25, 1)
72
- }
73
- };
74
-
75
- /**
76
- * Approximate configuration for activity open animation from Android 14.
77
- * See https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-14.0.0_r51/core/res/res/anim/activity_open_enter.xml
78
- */
79
- const FadeInFromRightAndroidSpec = exports.FadeInFromRightAndroidSpec = {
80
- animation: 'timing',
81
- config: {
82
- duration: 450,
83
- // This is super rough approximation of the path used for the curve by android
84
- // See https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-14.0.0_r51/core/res/res/interpolator/fast_out_extra_slow_in.xml
85
- easing: _reactNative.Easing.bezier(0.20833, 0.82, 0.25, 1)
86
- }
87
- };
88
-
89
- /**
90
- * Approximate configuration for activity close animation from Android 14.
91
- * See https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-14.0.0_r51/core/res/res/anim/activity_close_exit.xml
92
- */
93
- const FadeOutToLeftAndroidSpec = exports.FadeOutToLeftAndroidSpec = {
94
- animation: 'timing',
95
- config: {
96
- duration: 450,
97
- // This is super rough approximation of the path used for the curve by android
98
- // See https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-14.0.0_r51/core/res/res/interpolator/fast_out_extra_slow_in.xml
99
- easing: _reactNative.Easing.bezier(0.20833, 0.82, 0.25, 1)
100
- }
101
- };
102
-
103
- /**
104
- * Configuration for bottom sheet slide in animation from Material Design.
105
- * See https://github.com/material-components/material-components-android/blob/fd3639092e1ffef9dc11bcedf79f32801d85e898/lib/java/com/google/android/material/bottomsheet/res/anim/mtrl_bottom_sheet_slide_in.xml
106
- */
107
- const BottomSheetSlideInSpec = exports.BottomSheetSlideInSpec = {
108
- animation: 'timing',
109
- config: {
110
- duration: 250,
111
- // See https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/view/animation/AccelerateDecelerateInterpolator.java
112
- easing: t => Math.cos((t + 1) * Math.PI) / 2.0 + 0.5
113
- }
114
- };
115
-
116
- /**
117
- * Configuration for bottom sheet slide out animation from Material Design.
118
- * See https://github.com/material-components/material-components-android/blob/fd3639092e1ffef9dc11bcedf79f32801d85e898/lib/java/com/google/android/material/bottomsheet/res/anim/mtrl_bottom_sheet_slide_in.xml
119
- */
120
- const BottomSheetSlideOutSpec = exports.BottomSheetSlideOutSpec = {
121
- animation: 'timing',
122
- config: {
123
- duration: 200,
124
- // See https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/view/animation/AccelerateInterpolator.java
125
- easing: t => t === 1.0 ? 1 : Math.pow(t, 2)
126
- }
127
- };
128
- //# sourceMappingURL=TransitionSpecs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNative","require","TransitionIOSSpec","exports","animation","config","stiffness","damping","mass","overshootClamping","restDisplacementThreshold","restSpeedThreshold","FadeInFromBottomAndroidSpec","duration","easing","Easing","out","poly","FadeOutToBottomAndroidSpec","in","linear","RevealFromBottomAndroidSpec","bezier","ScaleFromCenterAndroidSpec","FadeInFromRightAndroidSpec","FadeOutToLeftAndroidSpec","BottomSheetSlideInSpec","t","Math","cos","PI","BottomSheetSlideOutSpec","pow"],"sourceRoot":"../../../src","sources":["TransitionConfigs/TransitionSpecs.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAIA;AACA;AACA;AACO,MAAMC,iBAAiC,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/CE,SAAS,EAAE,QAAQ;EACnBC,MAAM,EAAE;IACNC,SAAS,EAAE,IAAI;IACfC,OAAO,EAAE,GAAG;IACZC,IAAI,EAAE,CAAC;IACPC,iBAAiB,EAAE,IAAI;IACvBC,yBAAyB,EAAE,EAAE;IAC7BC,kBAAkB,EAAE;EACtB;AACF,CAAC;;AAED;AACA;AACA;AACA;AACO,MAAMC,2BAA2C,GAAAT,OAAA,CAAAS,2BAAA,GAAG;EACzDR,SAAS,EAAE,QAAQ;EACnBC,MAAM,EAAE;IACNQ,QAAQ,EAAE,GAAG;IACbC,MAAM,EAAEC,mBAAM,CAACC,GAAG,CAACD,mBAAM,CAACE,IAAI,CAAC,CAAC,CAAC;EACnC;AACF,CAAC;;AAED;AACA;AACA;AACA;AACO,MAAMC,0BAA0C,GAAAf,OAAA,CAAAe,0BAAA,GAAG;EACxDd,SAAS,EAAE,QAAQ;EACnBC,MAAM,EAAE;IACNQ,QA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ACpDtB,SAAS,EAAE,QAAQ;EACnBC,MAAM,EAAE;IACNQ,QAAQ,EAAE,GAAG;IACb;IACAC,MAAM,EAAGa,CAAC,IAAKC,IAAI,CAACC,GAAG,CAAC,CAACF,CAAC,GAAG,CAAC,IAAIC,IAAI,CAACE,EAAE,CAAC,GAAG,GAAG,GAAG;EACrD;AACF,CAAC;;AAED;AACA;AACA;AACA;AACO,MAAMC,uBAAuC,GAAA5B,OAAA,CAAA4B,uBAAA,GAAG;EACrD3B,SAAS,EAAE,QAAQ;EACnBC,MAAM,EAAE;IACNQ,QAAQ,EAAE,GAAG;IACb;IACAC,MAAM,EAAGa,CAAC,IAAMA,CAAC,KAAK,GAAG,GAAG,CAAC,GAAGC,IAAI,CAACI,GAAG,CAACL,CAAC,EAAE,CAAC;EAC/C;AACF,CAAC","ignoreList":[]}
@@ -1,68 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "CardAnimationContext", {
7
- enumerable: true,
8
- get: function () {
9
- return _CardAnimationContext.CardAnimationContext;
10
- }
11
- });
12
- exports.CardStyleInterpolators = void 0;
13
- Object.defineProperty(exports, "GestureHandlerRefContext", {
14
- enumerable: true,
15
- get: function () {
16
- return _GestureHandlerRefContext.GestureHandlerRefContext;
17
- }
18
- });
19
- Object.defineProperty(exports, "Header", {
20
- enumerable: true,
21
- get: function () {
22
- return _Header.Header;
23
- }
24
- });
25
- exports.HeaderStyleInterpolators = void 0;
26
- Object.defineProperty(exports, "StackView", {
27
- enumerable: true,
28
- get: function () {
29
- return _StackView.StackView;
30
- }
31
- });
32
- exports.TransitionSpecs = exports.TransitionPresets = void 0;
33
- Object.defineProperty(exports, "createStackNavigator", {
34
- enumerable: true,
35
- get: function () {
36
- return _createStackNavigator.createStackNavigator;
37
- }
38
- });
39
- Object.defineProperty(exports, "useCardAnimation", {
40
- enumerable: true,
41
- get: function () {
42
- return _useCardAnimation.useCardAnimation;
43
- }
44
- });
45
- Object.defineProperty(exports, "useGestureHandlerRef", {
46
- enumerable: true,
47
- get: function () {
48
- return _useGestureHandlerRef.useGestureHandlerRef;
49
- }
50
- });
51
- var CardStyleInterpolators = _interopRequireWildcard(require("./TransitionConfigs/CardStyleInterpolators.js"));
52
- exports.CardStyleInterpolators = CardStyleInterpolators;
53
- var HeaderStyleInterpolators = _interopRequireWildcard(require("./TransitionConfigs/HeaderStyleInterpolators.js"));
54
- exports.HeaderStyleInterpolators = HeaderStyleInterpolators;
55
- var TransitionPresets = _interopRequireWildcard(require("./TransitionConfigs/TransitionPresets.js"));
56
- exports.TransitionPresets = TransitionPresets;
57
- var TransitionSpecs = _interopRequireWildcard(require("./TransitionConfigs/TransitionSpecs.js"));
58
- exports.TransitionSpecs = TransitionSpecs;
59
- var _createStackNavigator = require("./navigators/createStackNavigator.js");
60
- var _Header = require("./views/Header/Header.js");
61
- var _StackView = require("./views/Stack/StackView.js");
62
- var _CardAnimationContext = require("./utils/CardAnimationContext.js");
63
- var _GestureHandlerRefContext = require("./utils/GestureHandlerRefContext.js");
64
- var _useCardAnimation = require("./utils/useCardAnimation.js");
65
- var _useGestureHandlerRef = require("./utils/useGestureHandlerRef.js");
66
- 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); }
67
- 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; }
68
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["CardStyleInterpolators","_interopRequireWildcard","require","exports","HeaderStyleInterpolators","TransitionPresets","TransitionSpecs","_createStackNavigator","_Header","_StackView","_CardAnimationContext","_GestureHandlerRefContext","_useCardAnimation","_useGestureHandlerRef","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,sBAAA,GAAAC,uBAAA,CAAAC,OAAA;AAAqFC,OAAA,CAAAH,sBAAA,GAAAA,sBAAA;AACrF,IAAAI,wBAAA,GAAAH,uBAAA,CAAAC,OAAA;AAAyFC,OAAA,CAAAC,wBAAA,GAAAA,wBAAA;AACzF,IAAAC,iBAAA,GAAAJ,uBAAA,CAAAC,OAAA;AAA2EC,OAAA,CAAAE,iBAAA,GAAAA,iBAAA;AAC3E,IAAAC,eAAA,GAAAL,uBAAA,CAAAC,OAAA;AAAuEC,OAAA,CAAAG,eAAA,GAAAA,eAAA;AAKvE,IAAAC,qBAAA,GAAAL,OAAA;AAKA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AAeA,IAAAQ,qBAAA,GAAAR,OAAA;AACA,IAAAS,yBAAA,GAAAT,OAAA;AACA,IAAAU,iBAAA,GAAAV,OAAA;AACA,IAAAW,qBAAA,GAAAX,OAAA;AAAoE,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,SAAAd,wBAAAc,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,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA","ignoreList":[]}
@@ -1,75 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.createStackNavigator = createStackNavigator;
7
- var _native = require("@react-navigation/native");
8
- var React = _interopRequireWildcard(require("react"));
9
- var _StackView = require("../views/Stack/StackView.js");
10
- var _jsxRuntime = require("react/jsx-runtime");
11
- 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); }
12
- 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; }
13
- function StackNavigator({
14
- id,
15
- initialRouteName,
16
- children,
17
- layout,
18
- screenListeners,
19
- screenOptions,
20
- screenLayout,
21
- UNSTABLE_router,
22
- ...rest
23
- }) {
24
- const {
25
- direction
26
- } = (0, _native.useLocale)();
27
- const {
28
- state,
29
- describe,
30
- descriptors,
31
- navigation,
32
- NavigationContent
33
- } = (0, _native.useNavigationBuilder)(_native.StackRouter, {
34
- id,
35
- initialRouteName,
36
- children,
37
- layout,
38
- screenListeners,
39
- screenOptions,
40
- screenLayout,
41
- UNSTABLE_router
42
- });
43
- React.useEffect(() =>
44
- // @ts-expect-error: there may not be a tab navigator in parent
45
- navigation.addListener?.('tabPress', e => {
46
- const isFocused = navigation.isFocused();
47
-
48
- // Run the operation in the next frame so we're sure all listeners have been run
49
- // This is necessary to know if preventDefault() has been called
50
- requestAnimationFrame(() => {
51
- if (state.index > 0 && isFocused && !e.defaultPrevented) {
52
- // When user taps on already focused tab and we're inside the tab,
53
- // reset the stack to replicate native behaviour
54
- navigation.dispatch({
55
- ..._native.StackActions.popToTop(),
56
- target: state.key
57
- });
58
- }
59
- });
60
- }), [navigation, state.index, state.key]);
61
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(NavigationContent, {
62
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_StackView.StackView, {
63
- ...rest,
64
- direction: direction,
65
- state: state,
66
- describe: describe,
67
- descriptors: descriptors,
68
- navigation: navigation
69
- })
70
- });
71
- }
72
- function createStackNavigator(config) {
73
- return (0, _native.createNavigatorFactory)(StackNavigator)(config);
74
- }
75
- //# sourceMappingURL=createStackNavigator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_native","require","React","_interopRequireWildcard","_StackView","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","StackNavigator","id","initialRouteName","children","layout","screenListeners","screenOptions","screenLayout","UNSTABLE_router","rest","direction","useLocale","state","describe","descriptors","navigation","NavigationContent","useNavigationBuilder","StackRouter","useEffect","addListener","isFocused","requestAnimationFrame","index","defaultPrevented","dispatch","StackActions","popToTop","target","key","jsx","StackView","createStackNavigator","config","createNavigatorFactory"],"sourceRoot":"../../../src","sources":["navigators/createStackNavigator.tsx"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAeA,IAAAC,KAAA,GAAAC,uBAAA,CAAAF,OAAA;AAQA,IAAAG,UAAA,GAAAH,OAAA;AAAqD,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAK,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,SAAAJ,wBAAAI,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,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAA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BAAY,CAACC,QAAQ,CAAC,CAAC;UAC1BC,MAAM,EAAEhB,KAAK,CAACiB;QAChB,CAAC,CAAC;MACJ;IACF,CAAC,CAAC;EACJ,CAAC,CAAC,EACJ,CAACd,UAAU,EAAEH,KAAK,CAACW,KAAK,EAAEX,KAAK,CAACiB,GAAG,CACrC,CAAC;EAED,oBACE,IAAAlD,WAAA,CAAAmD,GAAA,EAACd,iBAAiB;IAAAb,QAAA,eAChB,IAAAxB,WAAA,CAAAmD,GAAA,EAACpD,UAAA,CAAAqD,SAAS;MAAA,GACJtB,IAAI;MACRC,SAAS,EAAEA,SAAU;MACrBE,KAAK,EAAEA,KAAM;MACbC,QAAQ,EAAEA,QAAS;MACnBC,WAAW,EAAEA,WAAY;MACzBC,UAAU,EAAEA;IAAW,CACxB;EAAC,CACe,CAAC;AAExB;AAEO,SAASiB,oBAAoBA,CAmBlCC,MAAe,EAAmC;EAClD,OAAO,IAAAC,8BAAsB,EAAClC,cAAc,CAAC,CAACiC,MAAM,CAAC;AACvD","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"type":"commonjs"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../src","sources":["types.tsx"],"mappings":"","ignoreList":[]}
@@ -1,11 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.CardAnimationContext = void 0;
7
- var React = _interopRequireWildcard(require("react"));
8
- 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); }
9
- 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; }
10
- const CardAnimationContext = exports.CardAnimationContext = /*#__PURE__*/React.createContext(undefined);
11
- //# sourceMappingURL=CardAnimationContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","CardAnimationContext","exports","createContext","undefined"],"sourceRoot":"../../../src","sources":["utils/CardAnimationContext.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,SAAAC,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,SAAAH,wBAAAG,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,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAIxB,MAAMW,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,gBAAGvB,KAAK,CAACyB,aAAa,CAErDC,SAAS,CAAC","ignoreList":[]}
@@ -1,11 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.GestureHandlerRefContext = void 0;
7
- var React = _interopRequireWildcard(require("react"));
8
- 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); }
9
- 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; }
10
- const GestureHandlerRefContext = exports.GestureHandlerRefContext = /*#__PURE__*/React.createContext(null);
11
- //# sourceMappingURL=GestureHandlerRefContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","GestureHandlerRefContext","exports","createContext"],"sourceRoot":"../../../src","sources":["utils/GestureHandlerRefContext.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,SAAAC,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,SAAAH,wBAAAG,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,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAExB,MAAMW,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,gBAAGvB,KAAK,CAACyB,aAAa,CAEjD,IAAI,CAAC","ignoreList":[]}
@@ -1,11 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ModalPresentationContext = void 0;
7
- var React = _interopRequireWildcard(require("react"));
8
- 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); }
9
- 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; }
10
- const ModalPresentationContext = exports.ModalPresentationContext = /*#__PURE__*/React.createContext(false);
11
- //# sourceMappingURL=ModalPresentationContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ModalPresentationContext","exports","createContext"],"sourceRoot":"../../../src","sources":["utils/ModalPresentationContext.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,SAAAC,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,SAAAH,wBAAAG,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,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAExB,MAAMW,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,gBAAGvB,KAAK,CAACyB,aAAa,CAAC,KAAK,CAAC","ignoreList":[]}
@@ -1,32 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.conditional = conditional;
7
- var _reactNative = require("react-native");
8
- const {
9
- add,
10
- multiply
11
- } = _reactNative.Animated;
12
-
13
- /**
14
- * Use an Animated Node based on a condition. Similar to Reanimated's `cond`.
15
- *
16
- * @param condition Animated Node representing the condition, must be 0 or 1, 1 means `true`, 0 means `false`
17
- * @param main Animated Node to use if the condition is `true`
18
- * @param fallback Animated Node to use if the condition is `false`
19
- */
20
- function conditional(condition, main, fallback) {
21
- // To implement this behavior, we multiply the main node with the condition.
22
- // So if condition is 0, result will be 0, and if condition is 1, result will be main node.
23
- // Then we multiple reverse of the condition (0 if condition is 1) with the fallback.
24
- // So if condition is 0, result will be fallback node, and if condition is 1, result will be 0,
25
- // This way, one of them will always be 0, and other one will be the value we need.
26
- // In the end we add them both together, 0 + value we need = value we need
27
- return add(multiply(condition, main), multiply(condition.interpolate({
28
- inputRange: [0, 1],
29
- outputRange: [1, 0]
30
- }), fallback));
31
- }
32
- //# sourceMappingURL=conditional.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNative","require","add","multiply","Animated","conditional","condition","main","fallback","interpolate","inputRange","outputRange"],"sourceRoot":"../../../src","sources":["utils/conditional.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,MAAM;EAAEC,GAAG;EAAEC;AAAS,CAAC,GAAGC,qBAAQ;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,WAAWA,CACzBC,SAAgD,EAChDC,IAA4C,EAC5CC,QAAgD,EAChD;EACA;EACA;EACA;EACA;EACA;EACA;EACA,OAAON,GAAG,CACRC,QAAQ,CAACG,SAAS,EAAEC,IAAI,CAAC,EACzBJ,QAAQ,CACNG,SAAS,CAACG,WAAW,CAAC;IACpBC,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IAClBC,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC;EACpB,CAAC,CAAC,EACFH,QACF,CACF,CAAC;AACH","ignoreList":[]}
@@ -1,15 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.findLastIndex = findLastIndex;
7
- function findLastIndex(array, callback) {
8
- for (let i = array.length - 1; i >= 0; i--) {
9
- if (callback(array[i])) {
10
- return i;
11
- }
12
- }
13
- return -1;
14
- }
15
- //# sourceMappingURL=findLastIndex.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["findLastIndex","array","callback","i","length"],"sourceRoot":"../../../src","sources":["utils/findLastIndex.tsx"],"mappings":";;;;;;AAAO,SAASA,aAAaA,CAAIC,KAAU,EAAEC,QAA+B,EAAE;EAC5E,KAAK,IAAIC,CAAC,GAAGF,KAAK,CAACG,MAAM,GAAG,CAAC,EAAED,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC1C,IAAID,QAAQ,CAACD,KAAK,CAACE,CAAC,CAAC,CAAC,EAAE;MACtB,OAAOA,CAAC;IACV;EACF;EAEA,OAAO,CAAC,CAAC;AACX","ignoreList":[]}
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getDistanceForDirection = getDistanceForDirection;
7
- var _getInvertedMultiplier = require("./getInvertedMultiplier.js");
8
- function getDistanceForDirection(layout, gestureDirection, isRTL) {
9
- const multiplier = (0, _getInvertedMultiplier.getInvertedMultiplier)(gestureDirection, isRTL);
10
- switch (gestureDirection) {
11
- case 'vertical':
12
- case 'vertical-inverted':
13
- return layout.height * multiplier;
14
- case 'horizontal':
15
- case 'horizontal-inverted':
16
- return layout.width * multiplier;
17
- }
18
- }
19
- //# sourceMappingURL=getDistanceForDirection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_getInvertedMultiplier","require","getDistanceForDirection","layout","gestureDirection","isRTL","multiplier","getInvertedMultiplier","height","width"],"sourceRoot":"../../../src","sources":["utils/getDistanceForDirection.tsx"],"mappings":";;;;;;AACA,IAAAA,sBAAA,GAAAC,OAAA;AAEO,SAASC,uBAAuBA,CACrCC,MAAc,EACdC,gBAAkC,EAClCC,KAAc,EACN;EACR,MAAMC,UAAU,GAAG,IAAAC,4CAAqB,EAACH,gBAAgB,EAAEC,KAAK,CAAC;EAEjE,QAAQD,gBAAgB;IACtB,KAAK,UAAU;IACf,KAAK,mBAAmB;MACtB,OAAOD,MAAM,CAACK,MAAM,GAAGF,UAAU;IACnC,KAAK,YAAY;IACjB,KAAK,qBAAqB;MACxB,OAAOH,MAAM,CAACM,KAAK,GAAGH,UAAU;EACpC;AACF","ignoreList":[]}