import React, {ReactNode, ReactText} from 'react'; import {Text, TouchableHighlight, Platform, View} from 'react-native'; import styles from './styles/PopoverItem.styles'; interface IPopoverItemProps { children: ReactNode | ReactText | ReactNode[]; disabled?: boolean; disabledTextColor?: string; onPress: () => void; style?: object; textStyle?: object; icon?: ReactNode; underlayColor?: string; hasIconsAtOptions: boolean; } const PopoverItem: React.FC = ({ children, disabled, disabledTextColor, onPress, style, icon, textStyle, underlayColor, hasIconsAtOptions, ...props }) => ( {hasIconsAtOptions? {icon} : null} {children} ); PopoverItem.defaultProps = { disabled: false, disabledTextColor: '#BDBDBD', underlayColor: '#E0E0E0', style: {}, textStyle: {}, }; export default PopoverItem;