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

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.
@@ -39,8 +39,9 @@ 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
+ title: `${Component.name} screen_interaction_time ${
43
+ Date.now() - startTime.current
44
+ }`,
44
45
  });
45
46
  });
46
47
  }, [options]);
@@ -50,8 +51,11 @@ const StackScreen: React.FC<ScreenParams> = props => {
50
51
  */
51
52
  useEffect(() => {
52
53
  if (__DEV__) {
53
- if (!Component.name || Component.name === 'screen') {
54
- Alert.alert('Design system', `Unvalidated screen name "${Component.name}" !`)
54
+ if (!Component.name || Component.name === 'screen') {
55
+ Alert.alert(
56
+ 'Design system',
57
+ `Unvalidated screen name "${Component.name}" !`,
58
+ );
55
59
  }
56
60
  }
57
61
 
@@ -74,7 +78,7 @@ const StackScreen: React.FC<ScreenParams> = props => {
74
78
  };
75
79
  navigator?.maxApi?.trackEvent?.('service_frame_displayed', params);
76
80
  navigator?.maxApi?.showToastDebug?.({
77
- title: 'service_frame_displayed',
81
+ title: `${Component.name} service_frame_displayed`,
78
82
  params,
79
83
  });
80
84
 
@@ -86,7 +90,7 @@ const StackScreen: React.FC<ScreenParams> = props => {
86
90
  };
87
91
  navigator?.maxApi?.trackEvent?.('service_icon_clicked', params);
88
92
  navigator?.maxApi?.showToastDebug?.({
89
- title: 'service_icon_clicked',
93
+ title: `${Component.name} service_icon_clicked`,
90
94
  params,
91
95
  });
92
96
  });
@@ -107,8 +111,7 @@ const StackScreen: React.FC<ScreenParams> = props => {
107
111
  timeout.current = setTimeout(() => {
108
112
  timeLoad.current = endTime.current - startTime.current;
109
113
  navigator?.maxApi?.showToastDebug?.({
110
- title: 'screen_load_time',
111
- message: timeLoad.current,
114
+ title: `${Component.name} screen_load_time ${timeLoad.current}`,
112
115
  });
113
116
  }, 1000);
114
117
  },
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.17",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {