@momo-kits/template 0.81.50 → 0.81.60

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,6 +1,6 @@
1
1
  import React, {FC} from 'react';
2
2
  import {Animated, TouchableOpacity} from 'react-native';
3
- import Carousel from '@momo-kits/carousel';
3
+ import {Carousel} from '@momo-kits/carousel';
4
4
  import {Image, Pagination, Spacing} from '@momo-kits/foundation';
5
5
  import {HeaderSliderBannerProps} from './types';
6
6
 
@@ -41,6 +41,7 @@ const HeaderSliderBanner: FC<HeaderSliderBannerProps> = ({
41
41
  return (
42
42
  <TouchableOpacity disabled={!onPressItem} onPress={onPressItem}>
43
43
  <Image
44
+ style={{width: "100%", height: "100%"}}
44
45
  key={`Header banner ${item}_${index}`}
45
46
  source={{
46
47
  uri: item,
@@ -12,7 +12,7 @@ const CustomAvatar: FC<CustomAvatarProps> = ({image, text, style}) => {
12
12
  return (
13
13
  <Text
14
14
  color={theme.colors.primary}
15
- typography={'description_xs_regular'}>
15
+ typography={'description_xs'}>
16
16
  {text}
17
17
  </Text>
18
18
  );
@@ -29,6 +29,7 @@ const TrustBanner: FC<TrustBannerProps> = ({
29
29
  screenName = '',
30
30
  serviceName = '',
31
31
  trackEvent,
32
+ disabledPress = false
32
33
  }) => {
33
34
  const {theme, language} = useContext(ApplicationContext);
34
35
  const [data, setData] = useState(defaultData);
@@ -117,6 +118,7 @@ const TrustBanner: FC<TrustBannerProps> = ({
117
118
 
118
119
  return (
119
120
  <TouchableOpacity
121
+ disabled={disabledPress}
120
122
  onPress={_onPress}
121
123
  activeOpacity={0.7}
122
124
  style={[style, styles.container]}>
@@ -41,6 +41,8 @@ export type TrustBannerProps = {
41
41
  * Optional. instance of maxApi trackEvent function.
42
42
  */
43
43
  trackEvent?: (eventName: string, params: TrustBannerCallbackParams) => void;
44
+
45
+ disabledPress?: boolean
44
46
  };
45
47
 
46
48
  export type CustomAvatarProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/template",
3
- "version": "0.81.50",
3
+ "version": "0.81.60",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "dependencies": {},
@@ -13,4 +13,4 @@
13
13
  "@momo-platform/api": "0.1.67-rc.3"
14
14
  },
15
15
  "license": "MoMo"
16
- }
16
+ }