import React from 'react'; import { View, Text } from 'react-native'; import PropTypes from 'prop-types'; import styles from './styles'; import Touch from '../../utils/touch'; import { themes } from '../../constants/colors'; import { withTheme } from '../../theme'; const Item = React.memo(({ left, right, text, onPress, testID, current, theme }) => ( {left} {text} {right} )); Item.propTypes = { left: PropTypes.element, right: PropTypes.element, text: PropTypes.string, current: PropTypes.bool, onPress: PropTypes.func, testID: PropTypes.string, theme: PropTypes.string }; export default withTheme(Item);