aboutsummaryrefslogtreecommitdiff
path: root/src/components/taggs
diff options
context:
space:
mode:
authorGeorge Rusu <george@tagg.id>2021-05-25 13:35:05 -0700
committerGeorge Rusu <george@tagg.id>2021-05-25 13:35:05 -0700
commit4089ccdc05ffa5e02c6e0be717626cbdc631b8f2 (patch)
treee279bfe3b33da17f85fc3ca83cbb1f338e05e4b3 /src/components/taggs
parenta5ef509d2a1f79d85c76ee766dabe96acac2a989 (diff)
parent7f991eef32475165f819dc8b666c5763f0021696 (diff)
Merge
Diffstat (limited to 'src/components/taggs')
-rw-r--r--src/components/taggs/TaggDraggable.tsx37
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>