DanieleCalisti

HeaderMeteo.js

Nov 23rd, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { StatusBar } from 'expo-status-bar';
  2. import React from 'react';
  3. import { StyleSheet, Text, View } from 'react-native';
  4.  
  5. const HeaderMeteo = (props) => {
  6.     return
  7.     (
  8.         <View style={styles.header}>
  9.           <Text style={styles.title}>{props.title}</Text>
  10.         </View>
  11.     );
  12. }
  13.  
  14. const styles = StyleSheet.create({
  15.     header:
  16.   {
  17.     height:"15%",
  18.     backgroundColor: "blue"
  19.   },
  20.   title:
  21.   {
  22.     fontSize: 40,
  23.     justifyContent: "center",
  24.     textAlign: "center",
  25.     marginTop: "10%"
  26.   }
  27. })
  28.  
  29. export default HeaderMeteo;
Advertisement
Add Comment
Please, Sign In to add comment