@momo-kits/template 0.89.4-react-native.0.74.1 → 0.89.5

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.
@@ -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]}>
@@ -131,7 +133,7 @@ const TrustBanner: FC<TrustBannerProps> = ({
131
133
  <Text
132
134
  style={styles.message}
133
135
  color={theme.colors.text.secondary}
134
- typography={'description_default_regular'}>
136
+ typography={'description_s'}>
135
137
  {content?.[language || 'vi'] || defaultData.content.vi}
136
138
  </Text>
137
139
  {renderFooter()}
@@ -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,16 +1,16 @@
1
1
  {
2
2
  "name": "@momo-kits/template",
3
- "version": "0.89.4-react-native.0.74.1",
3
+ "version": "0.89.5",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
+ "dependencies": {},
6
7
  "peerDependencies": {
7
8
  "@momo-kits/foundation": "*",
8
9
  "@momo-kits/carousel": "*",
9
- "prop-types": "15.7.2",
10
- "react": "*",
11
- "react-native": "*",
10
+ "prop-types": "^15.7.2",
11
+ "react": "16.9.0",
12
+ "react-native": ">=0.55",
12
13
  "@momo-platform/api": "0.1.67-rc.3"
13
14
  },
14
- "license": "MoMo",
15
- "dependencies": {}
15
+ "license": "MoMo"
16
16
  }