Header.js 531 B

12345678910111213141516171819202122232425
  1. import { StyleSheet, Text, View } from 'react-native'
  2. import React from 'react'
  3. import fonts from '../../theme/fonts'
  4. const Header = ({style,children}) => {
  5. return (
  6. <View style={[styles.headerContainer,style]}>
  7. {children}
  8. </View>
  9. )
  10. }
  11. export default Header
  12. const styles = StyleSheet.create({
  13. headerContainer:{
  14. paddingHorizontal: fonts.getSize(20),
  15. flexDirection: 'row',
  16. alignItems:'center',
  17. justifyContent:'space-between',
  18. height: 60,
  19. maxHeight: 60
  20. }
  21. })