import React, { FC } from "react"; import { View, Text, TouchableOpacity, TextStyle } from "react-native"; type Props = { LeftItem?: SideItemProps; RightItem?: SideItemProps; title: string; }; const textStyle: TextStyle = { fontSize: 20, fontWeight: "bold", color: "white", padding: 10, textAlignVertical: "center", }; export const SheetHeaderItem: FC = (props) => { const { LeftItem, RightItem, title } = props; return ( {LeftItem ? : <>} {title} {RightItem ? : <>} ); }; type SideItemProps = { onPress: () => void; title: string; position: "left" | "right"; }; const SideItem: FC = ({ onPress, title, position }) => { return ( {title} ); };