import * as React from 'react'; import { View } from 'react-native'; import { fontOpacity, mainColors, typographyGuide } from '../../primitives'; import Back from '../Back'; import { Column } from '../Helpers'; import Typography from '../Typography'; import { HeaderProps } from './types'; const Header: React.FC = ({ color, description, heading, onBackPress, textStyle = { heading: typographyGuide.header.heading, description: typographyGuide.header.description, }, }) => { const fallbackColor = color ?? mainColors.white; return ( {heading && ( {heading} )} {description && ( {description} )} ); }; export default Header;