import React from 'react'; import { TouchableOpacity, Text } from 'react-native'; import PropTypes from 'prop-types'; import styles from '../styles'; import I18n from '../../../i18n'; import { themes } from '../../../constants/colors'; const FixedMentionItem = ({ item, onPress, theme }) => ( onPress(item)} > {item.username} {item.username === 'here' ? I18n.t('Notify_active_in_this_room') : I18n.t('Notify_all_in_this_room')} ); FixedMentionItem.propTypes = { item: PropTypes.object, onPress: PropTypes.func, theme: PropTypes.string }; export default FixedMentionItem;