import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { themes } from '../../../lib/constants'; import { TSupportedThemes, withTheme } from '../../../theme'; import Touch from '../../../utils/touch'; import { CustomIcon, TIconsName } from '../../../containers/CustomIcon'; import sharedStyles from '../../Styles'; const styles = StyleSheet.create({ container: { paddingVertical: 8, minHeight: 40, paddingHorizontal: 16, flexDirection: 'row', alignItems: 'center' }, text: { flex: 1, fontSize: 16, ...sharedStyles.textRegular } }); interface IDropdownItem { text: string; iconName: TIconsName | null; theme?: TSupportedThemes; onPress: () => void; } const DropdownItem = React.memo(({ theme, onPress, iconName, text }: IDropdownItem) => ( {text} {iconName ? : null} )); export default withTheme(DropdownItem);