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