diff options
Diffstat (limited to 'src/components/taggs')
-rw-r--r-- | src/components/taggs/TaggDraggable.tsx | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/src/components/taggs/TaggDraggable.tsx b/src/components/taggs/TaggDraggable.tsx index e4448642..55f8162b 100644 --- a/src/components/taggs/TaggDraggable.tsx +++ b/src/components/taggs/TaggDraggable.tsx @@ -47,10 +47,11 @@ const TaggDraggable: React.FC<TaggDraggableProps> = ( return ( <TouchableWithoutFeedback> - <View style={styles.container}> - <Image style={styles.imageTip} source={uriTip} /> + <View ref={draggableRef}> <TouchableOpacity - onPressIn={() => + style={styles.container} + disabled={editingView} + onPress={() => navigateToProfile( state, dispatch, @@ -58,22 +59,20 @@ const TaggDraggable: React.FC<TaggDraggableProps> = ( ScreenType.Profile, user, ) - } - disabled={editingView} - style={styles.content} - ref={draggableRef}> - <Avatar style={styles.avatar} uri={taggedUser.thumbnail_url} /> - <Text style={editingView ? styles.buttonTitle : styles.buttonTitleX}> - @{taggedUser.username} - </Text> - {editingView && ( - <TouchableOpacity - disabled={false} - onPressIn={deleteFromList} - style={styles.imageX}> - <Image style={styles.imageX} source={uriX} /> - </TouchableOpacity> - )} + }> + <Image style={styles.imageTip} source={uriTip} /> + <View style={styles.content}> + <Avatar style={styles.avatar} uri={taggedUser.thumbnail_url} /> + <Text + style={editingView ? styles.buttonTitle : styles.buttonTitleX}> + @{taggedUser.username} + </Text> + {editingView && ( + <TouchableOpacity onPress={deleteFromList} style={styles.imageX}> + <Image style={styles.imageX} source={uriX} /> + </TouchableOpacity> + )} + </View> </TouchableOpacity> </View> </TouchableWithoutFeedback> |