import { View, Text, StyleSheet, StyleProp, ViewStyle, Image, } from 'react-native'; import Container from './Container'; interface HeaderProps { title?: string; subTitle?: string; style?: StyleProp; image?: string; } const Header = ({title, subTitle, style, image}: HeaderProps) => { return ( {title} {subTitle && {subTitle}} ); }; const defaultProps = { title: 'Sin información', subTitle: 'Sin información', }; Header.defaultProps = defaultProps; const styles = StyleSheet.create({ container: { backgroundColor: 'orange', }, contentContainer: { flex: 1, flexDirection: 'row', alignItems: 'stretch', }, icon: { width: 100, height: 100, resizeMode: 'contain', }, iconContainer: { justifyContent: 'center', alignItems: 'center', marginHorizontal: 8, }, titleContainer: { flex: 1, flexDirection: 'column', justifyContent: 'center', marginHorizontal: 16, }, title: { fontSize: 24, fontWeight: 'bold', color: 'white', }, subTitle: { fontSize: 16, fontWeight: 'normal', color: 'white', }, }); export default Header;