@momo-kits/template 0.81.7-beta.1 → 0.81.7-beta.3

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,9 +1,10 @@
1
1
  import React, {FC, useContext} from 'react';
2
- import {View} from 'react-native';
2
+ import {requireNativeComponent, UIManager, View, ViewProps} from 'react-native';
3
3
  import {TrustBannerProps} from './types';
4
4
  import styles from './styles';
5
5
  import {ApplicationContext, Colors, Image, Text} from '@momo-kits/foundation';
6
6
  import CustomAvatar from './CustomAvatar';
7
+ const NativeTrustBanner = requireNativeComponent<ViewProps>('TrustBannerView');
7
8
 
8
9
  const defaultIcons = [
9
10
  'https://static.momocdn.net/app/img/kits/trustBanner/ic_viettinbank.png',
@@ -60,6 +61,10 @@ const TrustBanner: FC<TrustBannerProps> = ({
60
61
  );
61
62
  };
62
63
 
64
+ if (UIManager.getViewManagerConfig('TrustBannerView')) {
65
+ return <NativeTrustBanner style={{height: 88}} />;
66
+ }
67
+
63
68
  return (
64
69
  <View style={[style, styles.container]}>
65
70
  <Image
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/template",
3
- "version": "0.81.7-beta.1",
3
+ "version": "0.81.7-beta.3",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "dependencies": {},