import React from 'react'; import { Text, View } from 'react-native'; import { themes } from '../../constants/colors'; import { CustomIcon } from '../../lib/Icons'; import { useTheme } from '../../theme'; import { Button } from './Button'; import styles from './styles'; export interface IActionSheetItem { item: { title: string; icon: string; danger?: boolean; testID?: string; onPress: () => void; right?: Function; }; hide(): void; } export const Item = React.memo(({ item, hide }: IActionSheetItem) => { const { theme } = useTheme(); const onPress = () => { hide(); item?.onPress(); }; return ( ); });