@momo-kits/foundation 0.89.4-tracking.17 → 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,7 +39,8 @@ const StackScreen: React.FC<ScreenParams> = props => {
39
39
  }
40
40
  InteractionManager.runAfterInteractions(() => {
41
41
  navigator?.maxApi?.showToastDebug?.({
42
- title: `${Component.name} screen_interaction_time ${
42
+ appId: context.appId,
43
+ message: `${Component.name} screen_interaction_time ${
43
44
  Date.now() - startTime.current
44
45
  }`,
45
46
  });
@@ -78,7 +79,8 @@ const StackScreen: React.FC<ScreenParams> = props => {
78
79
  };
79
80
  navigator?.maxApi?.trackEvent?.('service_frame_displayed', params);
80
81
  navigator?.maxApi?.showToastDebug?.({
81
- title: `${Component.name} service_frame_displayed`,
82
+ appId: context.appId,
83
+ message: `${Component.name} service_frame_displayed`,
82
84
  params,
83
85
  });
84
86
 
@@ -90,7 +92,8 @@ const StackScreen: React.FC<ScreenParams> = props => {
90
92
  };
91
93
  navigator?.maxApi?.trackEvent?.('service_icon_clicked', params);
92
94
  navigator?.maxApi?.showToastDebug?.({
93
- title: `${Component.name} service_icon_clicked`,
95
+ appId: context.appId,
96
+ message: `${Component.name} service_icon_clicked`,
94
97
  params,
95
98
  });
96
99
  });
@@ -111,7 +114,8 @@ const StackScreen: React.FC<ScreenParams> = props => {
111
114
  timeout.current = setTimeout(() => {
112
115
  timeLoad.current = endTime.current - startTime.current;
113
116
  navigator?.maxApi?.showToastDebug?.({
114
- title: `${Component.name} screen_load_time ${timeLoad.current}`,
117
+ appId: context.appId,
118
+ message: `${Component.name} screen_load_time ${timeLoad.current}`,
115
119
  });
116
120
  }, 1000);
117
121
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.89.4-tracking.17",
3
+ "version": "0.89.4-tracking.18",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {