@momo-kits/foundation 0.111.1-beta.0 → 0.111.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -90,7 +90,7 @@ const BottomSheet: React.FC<BottomSheetParams> = props => {
|
|
|
90
90
|
toValue: {x: 0, y: 0},
|
|
91
91
|
useNativeDriver: false,
|
|
92
92
|
easing: customEasingOpen,
|
|
93
|
-
duration:
|
|
93
|
+
duration: 350,
|
|
94
94
|
}).start();
|
|
95
95
|
|
|
96
96
|
return () => {
|
|
@@ -112,7 +112,7 @@ const BottomSheet: React.FC<BottomSheetParams> = props => {
|
|
|
112
112
|
toValue: {x: 0, y: heightDevice},
|
|
113
113
|
useNativeDriver: false,
|
|
114
114
|
easing: customEasingClose,
|
|
115
|
-
duration:
|
|
115
|
+
duration: 200,
|
|
116
116
|
}).start(() => {
|
|
117
117
|
navigator?.pop();
|
|
118
118
|
});
|
|
@@ -43,14 +43,23 @@ const HeaderBackground: React.FC<HeaderBackgroundProps> = ({
|
|
|
43
43
|
<View style={Styles.flex}>
|
|
44
44
|
<Animated.View
|
|
45
45
|
style={[
|
|
46
|
-
Styles.flex,
|
|
47
46
|
useShadowHeader ? styles.shadowHeader : styles.dividerHeader,
|
|
48
47
|
{
|
|
49
48
|
backgroundColor: theme.colors.background.surface,
|
|
50
49
|
opacity: opacityBackground,
|
|
51
|
-
|
|
50
|
+
height: '100%',
|
|
51
|
+
width: '100%',
|
|
52
52
|
},
|
|
53
|
-
]}
|
|
53
|
+
]}
|
|
54
|
+
/>
|
|
55
|
+
<Animated.View
|
|
56
|
+
style={{
|
|
57
|
+
position: 'absolute',
|
|
58
|
+
zIndex: 1,
|
|
59
|
+
height: '100%',
|
|
60
|
+
width: '100%',
|
|
61
|
+
overflow: 'hidden',
|
|
62
|
+
}}>
|
|
54
63
|
{theme?.assets?.headerBackground && (
|
|
55
64
|
<Image
|
|
56
65
|
style={styles.headerBackground}
|
|
@@ -99,8 +99,18 @@ const HeaderExtendHeader: React.FC<{
|
|
|
99
99
|
? styles.shadowHeader
|
|
100
100
|
: styles.dividerHeader,
|
|
101
101
|
{
|
|
102
|
+
position: 'absolute',
|
|
103
|
+
width: '100%',
|
|
104
|
+
zIndex: 1,
|
|
105
|
+
height: heightHeader,
|
|
102
106
|
backgroundColor: theme.colors.background.surface,
|
|
103
107
|
opacity: opacityBackground,
|
|
108
|
+
},
|
|
109
|
+
]}
|
|
110
|
+
/>
|
|
111
|
+
<Animated.View
|
|
112
|
+
style={[
|
|
113
|
+
{
|
|
104
114
|
position: 'absolute',
|
|
105
115
|
width: '100%',
|
|
106
116
|
height: heightHeader,
|
|
@@ -136,7 +146,6 @@ const HeaderExtendHeader: React.FC<{
|
|
|
136
146
|
</LinearGradientAnimated>
|
|
137
147
|
)}
|
|
138
148
|
</Animated.View>
|
|
139
|
-
|
|
140
149
|
<Animated.View
|
|
141
150
|
style={{
|
|
142
151
|
justifyContent: 'flex-end',
|
|
@@ -185,6 +194,16 @@ const HeaderExtendHeader: React.FC<{
|
|
|
185
194
|
height: heightHeader,
|
|
186
195
|
backgroundColor: theme.colors.background.surface,
|
|
187
196
|
opacity: opacityBackground,
|
|
197
|
+
},
|
|
198
|
+
]}
|
|
199
|
+
/>
|
|
200
|
+
<Animated.View
|
|
201
|
+
style={[
|
|
202
|
+
{
|
|
203
|
+
position: 'absolute',
|
|
204
|
+
width: '100%',
|
|
205
|
+
zIndex: 1,
|
|
206
|
+
height: heightHeader,
|
|
188
207
|
overflow: 'hidden',
|
|
189
208
|
},
|
|
190
209
|
]}>
|
|
@@ -59,12 +59,12 @@ const Modal: React.FC<ModalParams> = props => {
|
|
|
59
59
|
Animated.parallel([
|
|
60
60
|
Animated.timing(opacity, {
|
|
61
61
|
toValue: 0,
|
|
62
|
-
duration:
|
|
62
|
+
duration: 200,
|
|
63
63
|
useNativeDriver: true,
|
|
64
64
|
}),
|
|
65
65
|
Animated.timing(scale, {
|
|
66
66
|
toValue: 0.8,
|
|
67
|
-
duration:
|
|
67
|
+
duration: 200,
|
|
68
68
|
useNativeDriver: true,
|
|
69
69
|
}),
|
|
70
70
|
]).start(() => {
|