import React from 'react'; import PropTypes from 'prop-types'; import { StyleSheet, Text, View } from 'react-native'; import { themes } from '../../../constants/colors'; import { withTheme } from '../../../theme'; import Touch from '../../../utils/touch'; import { CustomIcon } from '../../../lib/Icons'; import sharedStyles from '../../Styles'; export const ROW_HEIGHT = 44; const styles = StyleSheet.create({ container: { paddingVertical: 11, height: ROW_HEIGHT, paddingHorizontal: 16, flexDirection: 'row', alignItems: 'center' }, text: { flex: 1, fontSize: 16, ...sharedStyles.textRegular } }); const DropdownItem = React.memo(({ theme, onPress, iconName, text }) => ( {text} {iconName ? : null} )); DropdownItem.propTypes = { text: PropTypes.string, iconName: PropTypes.string, theme: PropTypes.string, onPress: PropTypes.func }; export default withTheme(DropdownItem);