diff options
Diffstat (limited to 'src/utils/comments.tsx')
-rw-r--r-- | src/utils/comments.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/comments.tsx b/src/utils/comments.tsx index 47d26bb5..a71e3857 100644 --- a/src/utils/comments.tsx +++ b/src/utils/comments.tsx @@ -6,7 +6,6 @@ import { Part, PartType, } from 'react-native-controlled-mentions'; -import {TouchableOpacity} from 'react-native-gesture-handler'; import TaggTypeahead from '../components/common/TaggTypeahead'; import {TAGG_LIGHT_BLUE} from '../constants'; import {UserType} from '../types'; @@ -29,8 +28,9 @@ const renderPart = ( // Mention type part if (isMentionPartType(part.partType)) { return ( - <TouchableOpacity + <Text key={`${index}-${part.data?.trigger}`} + style={part.partType.textStyle} onPress={() => { if (part.data) { handlePress({ @@ -39,8 +39,8 @@ const renderPart = ( }); } }}> - <Text style={part.partType.textStyle}>{part.text}</Text> - </TouchableOpacity> + {part.text} + </Text> ); } |