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'; 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;