import React from 'react'; import { Text, View } from 'react-native'; import { themes } from '../../lib/constants'; import { CustomIcon, TIconsName } from '../CustomIcon'; import { useTheme } from '../../theme'; import { Button } from './Button'; import styles from './styles'; export interface IActionSheetItem { item: { title: string; icon: TIconsName; 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 ( ); });