Переглянути джерело

Merge pull request #18 from MGT-Limited/11-create-component-main-logo

Create Component - Main Logo #11
MGTKenYCS 1 рік тому
батько
коміт
6437727c0a
2 змінених файлів з 24 додано та 0 видалено
  1. BIN
      assets/logo.png
  2. 24 0
      component/global/logo.tsx

BIN
assets/logo.png


+ 24 - 0
component/global/logo.tsx

@@ -0,0 +1,24 @@
+import React from "react";
+import { Image, View, StyleProp, ImageStyle, ViewStyle } from 'react-native';
+
+const Logo = () => {
+   const logoSource = require('../../assets/logo.png');
+
+   const imageStyle: ImageStyle = {
+     width: '100%',
+     resizeMode: 'contain',
+   };
+
+   const viewStyle: ViewStyle = {
+     maxWidth: '100%',
+     alignItems: 'center',
+   };
+
+   return (
+     <View style={viewStyle}>
+       <Image source={logoSource} style={imageStyle} />
+     </View>
+   );
+};
+
+export default Logo;