logo.tsx 646 B

12345678910111213141516171819202122232425262728
  1. import React from 'react';
  2. import { Image, View, StyleProp, ImageStyle, ViewStyle } from 'react-native';
  3. const Logo = () => {
  4. const logoSource = require('../../assets/ccLogo.png');
  5. const imageStyle: ImageStyle = {
  6. width: '60%',
  7. resizeMode: 'contain'
  8. };
  9. const viewStyle: ViewStyle = {
  10. maxWidth: '100%',
  11. alignItems: 'center'
  12. };
  13. return (
  14. <View style={viewStyle}>
  15. <Image
  16. source={logoSource}
  17. style={imageStyle}
  18. resizeMode="contain"
  19. />
  20. </View>
  21. );
  22. };
  23. export default Logo;