import React from "react"; import { GestureResponderEvent, Image, ImageSourcePropType, StyleSheet, Text, TextStyle, TouchableOpacity, View, } from "react-native"; const Header = (props: { title: string; showCloseButton?: boolean; closeButtonIcon?: ImageSourcePropType; onPress: (event: GestureResponderEvent) => void; titleStyle?: TextStyle; closeIconTint?: string; }) => { const { title, showCloseButton, closeButtonIcon, onPress, titleStyle, closeIconTint } = props; return ( {showCloseButton && ( )} {title} ); }; const styles = StyleSheet.create({ container: { flexDirection: "row", alignItems: "center", height: 56, paddingLeft: 15, }, iconContainer: { paddingRight: 25, alignItems: "center" }, headingText: { fontSize: 20, fontWeight: "600", color: "#000" }, }); export default Header;