@momo-kits/foundation 0.89.4-tracking.16 → 0.89.4-tracking.18

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.
@@ -128,7 +128,8 @@ const HeaderLeft: React.FC<HeaderBackProps> = ({
128
128
  icon_name: 'back',
129
129
  };
130
130
  navigator?.maxApi?.showToastDebug?.({
131
- title: 'service_icon_clicked',
131
+ appId: context.appId,
132
+ message: 'service_icon_clicked',
132
133
  params,
133
134
  });
134
135
  navigator?.maxApi?.trackEvent?.('service_icon_clicked', params);
@@ -39,8 +39,10 @@ const StackScreen: React.FC<ScreenParams> = props => {
39
39
  }
40
40
  InteractionManager.runAfterInteractions(() => {
41
41
  navigator?.maxApi?.showToastDebug?.({
42
- title: 'screen_interaction_time',
43
- message: Date.now() - startTime.current,
42
+ appId: context.appId,
43
+ message: `${Component.name} screen_interaction_time ${
44
+ Date.now() - startTime.current
45
+ }`,
44
46
  });
45
47
  });
46
48
  }, [options]);
@@ -50,8 +52,11 @@ const StackScreen: React.FC<ScreenParams> = props => {
50
52
  */
51
53
  useEffect(() => {
52
54
  if (__DEV__) {
53
- if (!Component.name || Component.name === 'screen') {
54
- Alert.alert('Design system', `Unvalidated screen name "${Component.name}" !`)
55
+ if (!Component.name || Component.name === 'screen') {
56
+ Alert.alert(
57
+ 'Design system',
58
+ `Unvalidated screen name "${Component.name}" !`,
59
+ );
55
60
  }
56
61
  }
57
62
 
@@ -74,7 +79,8 @@ const StackScreen: React.FC<ScreenParams> = props => {
74
79
  };
75
80
  navigator?.maxApi?.trackEvent?.('service_frame_displayed', params);
76
81
  navigator?.maxApi?.showToastDebug?.({
77
- title: 'service_frame_displayed',
82
+ appId: context.appId,
83
+ message: `${Component.name} service_frame_displayed`,
78
84
  params,
79
85
  });
80
86
 
@@ -86,7 +92,8 @@ const StackScreen: React.FC<ScreenParams> = props => {
86
92
  };
87
93
  navigator?.maxApi?.trackEvent?.('service_icon_clicked', params);
88
94
  navigator?.maxApi?.showToastDebug?.({
89
- title: 'service_icon_clicked',
95
+ appId: context.appId,
96
+ message: `${Component.name} service_icon_clicked`,
90
97
  params,
91
98
  });
92
99
  });
@@ -107,8 +114,8 @@ const StackScreen: React.FC<ScreenParams> = props => {
107
114
  timeout.current = setTimeout(() => {
108
115
  timeLoad.current = endTime.current - startTime.current;
109
116
  navigator?.maxApi?.showToastDebug?.({
110
- title: 'screen_load_time',
111
- message: timeLoad.current,
117
+ appId: context.appId,
118
+ message: `${Component.name} screen_load_time ${timeLoad.current}`,
112
119
  });
113
120
  }, 1000);
114
121
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.89.4-tracking.16",
3
+ "version": "0.89.4-tracking.18",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {