import React from 'react'; import { Text, View } from 'react-native'; import { themes } from '../../lib/constants'; import { CustomIcon } from '../CustomIcon'; import { useTheme } from '../../theme'; import { Button } from './Button'; import { TActionSheetOptionsItem } from './Provider'; import styles from './styles'; export interface IActionSheetItem { item: TActionSheetOptionsItem; hide(): void; } export const Item = React.memo(({ item, hide }: IActionSheetItem) => { const { theme } = useTheme(); const onPress = () => { hide(); item?.onPress(); }; return ( ); });