import * as React from 'react'; import { Pressable, PressableProps, View } from 'react-native'; import { SmallDotIcon } from './icons/small-dot'; interface IconButtonProps extends Omit { icon: React.ReactNode; onPress?: () => void; required?: boolean; className?: string; activeOpacity?: number; } const IconButton = React.memo( ({ icon, required = false, hitSlop, activeOpacity = 0.7, ...restProps }: IconButtonProps) => { return ( {({ pressed }) => ( {icon} {required && ( )} )} ); }, ); export default IconButton;