@react-navigation/stack 7.2.9 → 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.
Files changed (70) hide show
  1. package/package.json +7 -5
  2. package/lib/commonjs/TransitionConfigs/CardStyleInterpolators.js +0 -407
  3. package/lib/commonjs/TransitionConfigs/CardStyleInterpolators.js.map +0 -1
  4. package/lib/commonjs/TransitionConfigs/HeaderStyleInterpolators.js +0 -271
  5. package/lib/commonjs/TransitionConfigs/HeaderStyleInterpolators.js.map +0 -1
  6. package/lib/commonjs/TransitionConfigs/TransitionPresets.js +0 -156
  7. package/lib/commonjs/TransitionConfigs/TransitionPresets.js.map +0 -1
  8. package/lib/commonjs/TransitionConfigs/TransitionSpecs.js +0 -128
  9. package/lib/commonjs/TransitionConfigs/TransitionSpecs.js.map +0 -1
  10. package/lib/commonjs/index.js +0 -68
  11. package/lib/commonjs/index.js.map +0 -1
  12. package/lib/commonjs/navigators/createStackNavigator.js +0 -75
  13. package/lib/commonjs/navigators/createStackNavigator.js.map +0 -1
  14. package/lib/commonjs/package.json +0 -1
  15. package/lib/commonjs/types.js +0 -6
  16. package/lib/commonjs/types.js.map +0 -1
  17. package/lib/commonjs/utils/CardAnimationContext.js +0 -11
  18. package/lib/commonjs/utils/CardAnimationContext.js.map +0 -1
  19. package/lib/commonjs/utils/GestureHandlerRefContext.js +0 -11
  20. package/lib/commonjs/utils/GestureHandlerRefContext.js.map +0 -1
  21. package/lib/commonjs/utils/ModalPresentationContext.js +0 -11
  22. package/lib/commonjs/utils/ModalPresentationContext.js.map +0 -1
  23. package/lib/commonjs/utils/conditional.js +0 -32
  24. package/lib/commonjs/utils/conditional.js.map +0 -1
  25. package/lib/commonjs/utils/findLastIndex.js +0 -15
  26. package/lib/commonjs/utils/findLastIndex.js.map +0 -1
  27. package/lib/commonjs/utils/getDistanceForDirection.js +0 -19
  28. package/lib/commonjs/utils/getDistanceForDirection.js.map +0 -1
  29. package/lib/commonjs/utils/getInvertedMultiplier.js +0 -19
  30. package/lib/commonjs/utils/getInvertedMultiplier.js.map +0 -1
  31. package/lib/commonjs/utils/getModalRoutesKeys.js +0 -17
  32. package/lib/commonjs/utils/getModalRoutesKeys.js.map +0 -1
  33. package/lib/commonjs/utils/getShadowStyle.js +0 -29
  34. package/lib/commonjs/utils/getShadowStyle.js.map +0 -1
  35. package/lib/commonjs/utils/memoize.js +0 -33
  36. package/lib/commonjs/utils/memoize.js.map +0 -1
  37. package/lib/commonjs/utils/throttle.js +0 -18
  38. package/lib/commonjs/utils/throttle.js.map +0 -1
  39. package/lib/commonjs/utils/useCardAnimation.js +0 -18
  40. package/lib/commonjs/utils/useCardAnimation.js.map +0 -1
  41. package/lib/commonjs/utils/useGestureHandlerRef.js +0 -18
  42. package/lib/commonjs/utils/useGestureHandlerRef.js.map +0 -1
  43. package/lib/commonjs/utils/useKeyboardManager.js +0 -96
  44. package/lib/commonjs/utils/useKeyboardManager.js.map +0 -1
  45. package/lib/commonjs/views/GestureHandler.android.js +0 -17
  46. package/lib/commonjs/views/GestureHandler.android.js.map +0 -1
  47. package/lib/commonjs/views/GestureHandler.ios.js +0 -17
  48. package/lib/commonjs/views/GestureHandler.ios.js.map +0 -1
  49. package/lib/commonjs/views/GestureHandler.js +0 -27
  50. package/lib/commonjs/views/GestureHandler.js.map +0 -1
  51. package/lib/commonjs/views/GestureHandlerNative.js +0 -35
  52. package/lib/commonjs/views/GestureHandlerNative.js.map +0 -1
  53. package/lib/commonjs/views/Header/Header.js +0 -62
  54. package/lib/commonjs/views/Header/Header.js.map +0 -1
  55. package/lib/commonjs/views/Header/HeaderContainer.js +0 -135
  56. package/lib/commonjs/views/Header/HeaderContainer.js.map +0 -1
  57. package/lib/commonjs/views/Header/HeaderSegment.js +0 -149
  58. package/lib/commonjs/views/Header/HeaderSegment.js.map +0 -1
  59. package/lib/commonjs/views/Screens.js +0 -50
  60. package/lib/commonjs/views/Screens.js.map +0 -1
  61. package/lib/commonjs/views/Stack/Card.js +0 -496
  62. package/lib/commonjs/views/Stack/Card.js.map +0 -1
  63. package/lib/commonjs/views/Stack/CardContainer.js +0 -282
  64. package/lib/commonjs/views/Stack/CardContainer.js.map +0 -1
  65. package/lib/commonjs/views/Stack/CardSheet.js +0 -88
  66. package/lib/commonjs/views/Stack/CardSheet.js.map +0 -1
  67. package/lib/commonjs/views/Stack/CardStack.js +0 -484
  68. package/lib/commonjs/views/Stack/CardStack.js.map +0 -1
  69. package/lib/commonjs/views/Stack/StackView.js +0 -346
  70. package/lib/commonjs/views/Stack/StackView.js.map +0 -1
@@ -1,271 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.forFade = forFade;
7
- exports.forNoAnimation = forNoAnimation;
8
- exports.forSlideLeft = forSlideLeft;
9
- exports.forSlideRight = forSlideRight;
10
- exports.forSlideUp = forSlideUp;
11
- exports.forUIKit = forUIKit;
12
- var _reactNative = require("react-native");
13
- const {
14
- add,
15
- multiply
16
- } = _reactNative.Animated;
17
-
18
- // Width of the screen in split layout on portrait mode on iPad Mini
19
- // Keep in sync with HeaderBackButton.tsx
20
- const IPAD_MINI_MEDIUM_WIDTH = 414;
21
-
22
- /**
23
- * Standard UIKit style animation for the header where the title fades into the back button label.
24
- */
25
- function forUIKit({
26
- current,
27
- next,
28
- direction,
29
- layouts
30
- }) {
31
- const defaultOffset = 100;
32
- const leftSpacing = 27 + (_reactNative.Platform.OS === 'ios' && layouts.screen.width >= IPAD_MINI_MEDIUM_WIDTH ? 5 // Additional padding on iPad specified in Header.tsx
33
- : 0);
34
-
35
- // The title and back button title should cross-fade to each other
36
- // When screen is fully open, the title should be in center, and back title should be on left
37
- // When screen is closing, the previous title will animate to back title's position
38
- // And back title will animate to title's position
39
- // We achieve this by calculating the offsets needed to translate title to back title's position and vice-versa
40
- const leftLabelOffset = layouts.leftLabel ? (layouts.screen.width - layouts.leftLabel.width) / 2 - leftSpacing : defaultOffset;
41
- const titleLeftOffset = layouts.title ? (layouts.screen.width - layouts.title.width) / 2 - leftSpacing : defaultOffset;
42
-
43
- // When the current title is animating to right, it is centered in the right half of screen in middle of transition
44
- // The back title also animates in from this position
45
- const rightOffset = layouts.screen.width / 4;
46
- const multiplier = direction === 'rtl' ? -1 : 1;
47
- const progress = add(current.progress.interpolate({
48
- inputRange: [0, 1],
49
- outputRange: [0, 1],
50
- extrapolate: 'clamp'
51
- }), next ? next.progress.interpolate({
52
- inputRange: [0, 1],
53
- outputRange: [0, 1],
54
- extrapolate: 'clamp'
55
- }) : 0);
56
- return {
57
- leftButtonStyle: {
58
- opacity: progress.interpolate({
59
- inputRange: [0.3, 1, 1.5],
60
- outputRange: [0, 1, 0]
61
- })
62
- },
63
- leftLabelStyle: {
64
- transform: [{
65
- translateX: multiply(multiplier, progress.interpolate({
66
- inputRange: [0, 1, 2],
67
- outputRange: [leftLabelOffset, 0, -rightOffset]
68
- }))
69
- }]
70
- },
71
- rightButtonStyle: {
72
- opacity: progress.interpolate({
73
- inputRange: [0.3, 1, 1.5],
74
- outputRange: [0, 1, 0]
75
- })
76
- },
77
- titleStyle: {
78
- opacity: progress.interpolate({
79
- inputRange: [0, 0.5, 0.75, 1, 1.5],
80
- outputRange: [0, 0, 0.1, 1, 0]
81
- }),
82
- transform: [{
83
- translateX: multiply(multiplier, progress.interpolate({
84
- inputRange: [0.5, 1, 2],
85
- outputRange: [rightOffset, 0, -titleLeftOffset]
86
- }))
87
- }]
88
- },
89
- backgroundStyle: {
90
- transform: [{
91
- translateX: multiply(multiplier, progress.interpolate({
92
- inputRange: [0, 1, 2],
93
- outputRange: [layouts.screen.width, 0, -layouts.screen.width]
94
- }))
95
- }]
96
- }
97
- };
98
- }
99
-
100
- /**
101
- * Simple fade animation for the header elements.
102
- */
103
- function forFade({
104
- current,
105
- next
106
- }) {
107
- const progress = add(current.progress.interpolate({
108
- inputRange: [0, 1],
109
- outputRange: [0, 1],
110
- extrapolate: 'clamp'
111
- }), next ? next.progress.interpolate({
112
- inputRange: [0, 1],
113
- outputRange: [0, 1],
114
- extrapolate: 'clamp'
115
- }) : 0);
116
- const opacity = progress.interpolate({
117
- inputRange: [0, 1, 2],
118
- outputRange: [0, 1, 0]
119
- });
120
- return {
121
- leftButtonStyle: {
122
- opacity
123
- },
124
- rightButtonStyle: {
125
- opacity
126
- },
127
- titleStyle: {
128
- opacity
129
- },
130
- backgroundStyle: {
131
- opacity: progress.interpolate({
132
- inputRange: [0, 1, 1.9, 2],
133
- outputRange: [0, 1, 1, 0]
134
- })
135
- }
136
- };
137
- }
138
-
139
- /**
140
- * Simple translate animation to translate the header to left.
141
- */
142
- function forSlideLeft({
143
- current,
144
- next,
145
- direction,
146
- layouts: {
147
- screen
148
- }
149
- }) {
150
- const isRTL = direction === 'rtl';
151
- const progress = add(current.progress.interpolate({
152
- inputRange: [0, 1],
153
- outputRange: [0, 1],
154
- extrapolate: 'clamp'
155
- }), next ? next.progress.interpolate({
156
- inputRange: [0, 1],
157
- outputRange: [0, 1],
158
- extrapolate: 'clamp'
159
- }) : 0);
160
- const translateX = progress.interpolate({
161
- inputRange: [0, 1, 2],
162
- outputRange: isRTL ? [-screen.width, 0, screen.width] : [screen.width, 0, -screen.width]
163
- });
164
- const transform = [{
165
- translateX
166
- }];
167
- return {
168
- leftButtonStyle: {
169
- transform
170
- },
171
- rightButtonStyle: {
172
- transform
173
- },
174
- titleStyle: {
175
- transform
176
- },
177
- backgroundStyle: {
178
- transform
179
- }
180
- };
181
- }
182
-
183
- /**
184
- * Simple translate animation to translate the header to right.
185
- */
186
- function forSlideRight({
187
- current,
188
- next,
189
- direction,
190
- layouts: {
191
- screen
192
- }
193
- }) {
194
- const isRTL = direction === 'rtl';
195
- const progress = add(current.progress.interpolate({
196
- inputRange: [0, 1],
197
- outputRange: [0, 1],
198
- extrapolate: 'clamp'
199
- }), next ? next.progress.interpolate({
200
- inputRange: [0, 1],
201
- outputRange: [0, 1],
202
- extrapolate: 'clamp'
203
- }) : 0);
204
- const translateX = progress.interpolate({
205
- inputRange: [0, 1, 2],
206
- outputRange: isRTL ? [screen.width, 0, -screen.width] : [-screen.width, 0, screen.width]
207
- });
208
- const transform = [{
209
- translateX
210
- }];
211
- return {
212
- leftButtonStyle: {
213
- transform
214
- },
215
- rightButtonStyle: {
216
- transform
217
- },
218
- titleStyle: {
219
- transform
220
- },
221
- backgroundStyle: {
222
- transform
223
- }
224
- };
225
- }
226
-
227
- /**
228
- * Simple translate animation to translate the header to slide up.
229
- */
230
- function forSlideUp({
231
- current,
232
- next,
233
- layouts: {
234
- header
235
- }
236
- }) {
237
- const progress = add(current.progress.interpolate({
238
- inputRange: [0, 1],
239
- outputRange: [0, 1],
240
- extrapolate: 'clamp'
241
- }), next ? next.progress.interpolate({
242
- inputRange: [0, 1],
243
- outputRange: [0, 1],
244
- extrapolate: 'clamp'
245
- }) : 0);
246
- const translateY = progress.interpolate({
247
- inputRange: [0, 1, 2],
248
- outputRange: [-header.height, 0, -header.height]
249
- });
250
- const transform = [{
251
- translateY
252
- }];
253
- return {
254
- leftButtonStyle: {
255
- transform
256
- },
257
- rightButtonStyle: {
258
- transform
259
- },
260
- titleStyle: {
261
- transform
262
- },
263
- backgroundStyle: {
264
- transform
265
- }
266
- };
267
- }
268
- function forNoAnimation() {
269
- return {};
270
- }
271
- //# sourceMappingURL=HeaderStyleInterpolators.js.map
@@ -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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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,EAAE;;AAE7B;AACA;AACA;AACO,MAAMC,iBAAmC,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EACjDE,gBAAgB,EAAE,YAAY;EAC9BC,cAAc,EAAE;IACdC,IAAI,EAAEC,kCAAiB;IACvBC,KAAK,EAAED;EACT,CAAC;EACDE,q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/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,QAAQ,EAAE,GAAG;IACbC,MAAM,EAAEC,mBAAM,CAACI,EAAE,CAACJ,mBAAM,CAACK,MAAM;EACjC;AACF,CAAC;;AAED;AACA;AACA;AACA;AACO,MAAMC,2BAA2C,GAAAlB,OAAA,CAAAkB,2BAAA,GAAG;EACzDjB,SAAS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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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