import React from 'react'; import { Text, View } from 'react-native'; import PropTypes from 'prop-types'; import Touch from '../../utils/touch'; import { themes } from '../../constants/colors'; import { withTheme } from '../../theme'; import styles from './styles'; 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);