import React from 'react'; import { Text } from 'react-native'; import PropTypes from 'prop-types'; import styles from './styles'; import { themes } from '../../../constants/colors'; import Touch from '../../../utils/touch'; const Button = ({ text, disabled, theme, onPress, del }) => ( onPress && onPress(text)} > { del ? ( del ) : ( {text} ) } ); Button.propTypes = { text: PropTypes.string, theme: PropTypes.string, disabled: PropTypes.bool, del: PropTypes.bool, onPress: PropTypes.func }; export default Button;