import React from 'react'; import { View, Text } from 'react-native'; import PropTypes from 'prop-types'; import { RectButton } from 'react-native-gesture-handler'; import styles from './styles'; import { COLOR_TEXT } from '../../constants/colors'; const Item = React.memo(({ left, text, onPress, testID, current }) => ( {left} {text} )); Item.propTypes = { left: PropTypes.element, text: PropTypes.string, current: PropTypes.bool, onPress: PropTypes.func, testID: PropTypes.string }; export default Item;