No Description

header.js 914B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import React from "react";
  2. import { StyleSheet, Text, View, Image } from 'react-native';
  3. import { MaterialIcons } from '@expo/vector-icons';
  4. export default function Header() {
  5. return (
  6. <View style = {styles.header}>
  7. <View style = {styles.headerTitle}>
  8. <Image source={require('../assets/logo.jpg')} style = {styles.headerImage}/>
  9. <Text style = {styles.headerText}> MocinesIUPI </Text>
  10. </View>
  11. </View>
  12. );
  13. }
  14. const styles = StyleSheet.create({
  15. header: {
  16. color: '#e81b3',
  17. width: '100%',
  18. height: '100%',
  19. flexDirection: 'row',
  20. alignItems: 'center',
  21. justifyContent: 'center',
  22. },
  23. headerText: {
  24. fontWeight: 'bold',
  25. fontSize:20,
  26. color: '#FFF',
  27. letterSpacing: 1,
  28. },
  29. headerTitle: {
  30. flexDirection: 'row',
  31. },
  32. headerImage: {
  33. width: 42,
  34. height: 42,
  35. marginHorizontal: 15,
  36. }
  37. });