@momo-kits/foundation 0.81.27-beta.1 → 0.81.27-beta.3
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/Application/Components.tsx +0 -11
- package/Application/StackScreen.tsx +0 -14
- package/Layout/Screen.tsx +16 -7
- package/Layout/styles.ts +3 -16
- package/Layout/types.ts +2 -2
- package/package.json +1 -1
|
@@ -183,17 +183,6 @@ const HeaderLeft: React.FC<HeaderBackProps> = ({
|
|
|
183
183
|
const canGoBack = navigator?.ref.current?.canGoBack();
|
|
184
184
|
if (!canGoBack && navigator?.trackingInfo) {
|
|
185
185
|
const currentRoute = navigator?.ref?.current.getCurrentRoute();
|
|
186
|
-
alert(
|
|
187
|
-
JSON.stringify({
|
|
188
|
-
feature_code: navigator.trackingInfo.code,
|
|
189
|
-
app_id: navigator.trackingInfo.appId,
|
|
190
|
-
miniapp_version: navigator.trackingInfo.buildNumber,
|
|
191
|
-
flow_partner_id: navigator.trackingInfo.flowPartnerId,
|
|
192
|
-
screen_name: currentRoute?.params?.screen?.name ?? currentRoute?.name,
|
|
193
|
-
trigger_id: '111154000000000000',
|
|
194
|
-
icon_name: 'back',
|
|
195
|
-
}),
|
|
196
|
-
);
|
|
197
186
|
navigator?.maxApi?.trackEvent('service_icon_clicked', {
|
|
198
187
|
feature_code: navigator.trackingInfo.code,
|
|
199
188
|
app_id: navigator.trackingInfo.appId,
|
|
@@ -47,13 +47,6 @@ const StackScreen: React.FC<ScreenParams> = props => {
|
|
|
47
47
|
pre_screen_name = routes[routesLength - 2]?.params?.screen?.name;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
alert(
|
|
51
|
-
JSON.stringify({
|
|
52
|
-
...tracking,
|
|
53
|
-
pre_screen_name,
|
|
54
|
-
trigger_id: '111378000000000000',
|
|
55
|
-
}),
|
|
56
|
-
);
|
|
57
50
|
navigator?.maxApi?.trackEvent('service_frame_displayed', {
|
|
58
51
|
...tracking,
|
|
59
52
|
pre_screen_name,
|
|
@@ -61,13 +54,6 @@ const StackScreen: React.FC<ScreenParams> = props => {
|
|
|
61
54
|
});
|
|
62
55
|
|
|
63
56
|
return props.navigation.addListener('beforeRemove', () => {
|
|
64
|
-
alert(
|
|
65
|
-
JSON.stringify({
|
|
66
|
-
...tracking,
|
|
67
|
-
trigger_id: '111154000000000000',
|
|
68
|
-
icon_name: 'back',
|
|
69
|
-
}),
|
|
70
|
-
);
|
|
71
57
|
navigator?.maxApi?.trackEvent('service_icon_clicked', {
|
|
72
58
|
...tracking,
|
|
73
59
|
trigger_id: '111154000000000000',
|
package/Layout/Screen.tsx
CHANGED
|
@@ -347,13 +347,22 @@ const Screen = forwardRef(
|
|
|
347
347
|
</Component>
|
|
348
348
|
{Footer && (
|
|
349
349
|
<View
|
|
350
|
-
style={
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
350
|
+
style={{
|
|
351
|
+
paddingTop: Spacing.S,
|
|
352
|
+
paddingBottom: Math.min(insets.bottom, 21) + Spacing.S,
|
|
353
|
+
backgroundColor: theme.colors.background.surface,
|
|
354
|
+
...Platform.select({
|
|
355
|
+
android: {
|
|
356
|
+
elevation: 4,
|
|
357
|
+
},
|
|
358
|
+
ios: {
|
|
359
|
+
shadowColor: Colors.black_20,
|
|
360
|
+
shadowOffset: {width: 0, height: -2},
|
|
361
|
+
shadowOpacity: 0.1,
|
|
362
|
+
shadowRadius: 3,
|
|
363
|
+
},
|
|
364
|
+
}),
|
|
365
|
+
}}>
|
|
357
366
|
<Section>{Footer}</Section>
|
|
358
367
|
</View>
|
|
359
368
|
)}
|
package/Layout/styles.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import {StyleSheet} from 'react-native';
|
|
2
|
+
import {Radius} from '../Consts';
|
|
3
3
|
|
|
4
4
|
export default StyleSheet.create({
|
|
5
5
|
extendedHeader: {
|
|
@@ -45,6 +45,7 @@ export default StyleSheet.create({
|
|
|
45
45
|
flexDirection: 'row',
|
|
46
46
|
flexWrap: 'wrap',
|
|
47
47
|
borderRadius: Radius.M,
|
|
48
|
+
|
|
48
49
|
padding: 12,
|
|
49
50
|
},
|
|
50
51
|
item: {
|
|
@@ -80,18 +81,4 @@ export default StyleSheet.create({
|
|
|
80
81
|
paddingHorizontal: undefined,
|
|
81
82
|
paddingVertical: undefined,
|
|
82
83
|
},
|
|
83
|
-
footerContainer: {
|
|
84
|
-
paddingTop: Spacing.S,
|
|
85
|
-
...Platform.select({
|
|
86
|
-
android: {
|
|
87
|
-
elevation: 4,
|
|
88
|
-
},
|
|
89
|
-
ios: {
|
|
90
|
-
shadowColor: Colors.black_20,
|
|
91
|
-
shadowOffset: {width: 0, height: -2},
|
|
92
|
-
shadowOpacity: 0.1,
|
|
93
|
-
shadowRadius: 3,
|
|
94
|
-
},
|
|
95
|
-
}),
|
|
96
|
-
},
|
|
97
84
|
});
|
package/Layout/types.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export type HeaderType = 'default' | 'surface' | 'extended' | 'none';
|
|
2
|
-
|
|
3
1
|
export type GridContextProps = {
|
|
4
2
|
/**
|
|
5
3
|
* Represents the number of columns in the grid.
|
|
@@ -21,3 +19,5 @@ export type GridContextProps = {
|
|
|
21
19
|
*/
|
|
22
20
|
getSizeSpan: (span: number) => number;
|
|
23
21
|
};
|
|
22
|
+
|
|
23
|
+
export type HeaderType = 'default' | 'surface' | 'extended' | 'none';
|