import React from 'react'; import { Text } from 'react-native'; import styles from './styles'; import { themes } from '../../../constants/colors'; import Touch from '../../../utils/touch'; import { CustomIcon } from '../../../lib/Icons'; interface IPasscodeButton { text: string; icon: string; theme: string; disabled: boolean; onPress({}?): void; } const Button = React.memo(({ text, disabled, theme, onPress, icon }: Partial) => { const press = () => onPress && onPress(text!); return ( { icon ? ( ) : ( {text} ) } ); }); export default Button;