Explorar el Código

Add logo component and image

YoATW9 hace 1 año
padre
commit
3f6d60a225
Se han modificado 2 ficheros con 24 adiciones y 0 borrados
  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'); // Ensure the path is correct
+
+   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;