@momo-kits/foundation 0.157.3-beta.20 → 0.157.3-beta.22

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.
@@ -35,8 +35,6 @@ const Modal: React.FC<ModalParams> = props => {
35
35
  modalStyle,
36
36
  useNativeModal = false,
37
37
  screen_name,
38
- componentName,
39
- componentLabel,
40
38
  description,
41
39
  title,
42
40
  } = props.route.params;
@@ -46,12 +44,7 @@ const Modal: React.FC<ModalParams> = props => {
46
44
  * Fire auto_popup_displayed tracking event on mount
47
45
  */
48
46
  useEffect(() => {
49
- if (typeof context?.autoTracking !== 'function') {
50
- return;
51
- }
52
-
53
47
  context.autoTracking({
54
- ...context,
55
48
  eventName: 'auto_popup_displayed',
56
49
  screen_name: screen_name ?? context.screenName,
57
50
  miniapp_version: context.miniapp_version,
@@ -59,8 +52,7 @@ const Modal: React.FC<ModalParams> = props => {
59
52
  app_id: context.appId,
60
53
  feature_code: context.feature_code,
61
54
  kits_version: version,
62
- component_name: componentName,
63
- component_label: componentLabel,
55
+ componentName: 'Modal',
64
56
  description,
65
57
  title,
66
58
  });
package/Popup/index.tsx CHANGED
@@ -1,4 +1,4 @@
1
1
  import PopupNotify from './PopupNotify';
2
2
  import PopupPromotion from './PopupPromotion';
3
3
 
4
- export { PopupNotify, PopupPromotion };
4
+ export {PopupNotify, PopupPromotion};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.157.3-beta.20",
3
+ "version": "0.157.3-beta.22",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {},