@momo-kits/template 0.157.1-beta.3 → 0.157.2-test.1

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.
@@ -1,7 +1,7 @@
1
1
  import React, {FC} from 'react';
2
2
  import {Animated, TouchableOpacity} from 'react-native';
3
3
  import {Carousel} from '@momo-kits/carousel';
4
- import {Image, Pagination, Spacing} from '@momo-kits/foundation';
4
+ import {Image, Pagination, Spacing, useScreenRegistry} from '@momo-kits/foundation';
5
5
  import {HeaderSliderBannerProps} from './types';
6
6
 
7
7
  const HeaderSliderBanner: FC<HeaderSliderBannerProps> = ({
@@ -15,6 +15,7 @@ const HeaderSliderBanner: FC<HeaderSliderBannerProps> = ({
15
15
  onPressItem,
16
16
  paginationType = 'black_white',
17
17
  }) => {
18
+ useScreenRegistry('HeaderSliderBanner');
18
19
  const scale = animatedValue.interpolate({
19
20
  inputRange: [-300, 0, 300],
20
21
  outputRange: [4, 1, 1],
@@ -10,6 +10,7 @@ import {
10
10
  MiniAppContext,
11
11
  Styles,
12
12
  Text,
13
+ useScreenRegistry,
13
14
  } from '@momo-kits/foundation';
14
15
  // @ts-ignore
15
16
  import MaxApi from '@momo-platform/api';
@@ -45,6 +46,7 @@ const TrustBanner: FC<TrustBannerProps> = ({
45
46
  serviceName = '',
46
47
  trackEvent,
47
48
  }) => {
49
+ useScreenRegistry('TrustBanner');
48
50
  const context = useContext<any>(MiniAppContext);
49
51
  const {
50
52
  theme,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/template",
3
- "version": "0.157.1-beta.3",
3
+ "version": "0.157.2-test.1",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "peerDependencies": {