aboutsummaryrefslogtreecommitdiff
path: root/src/screens/profile/CaptionScreen.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-05-21 20:34:30 -0400
committerIvan Chen <ivan@tagg.id>2021-05-21 20:34:30 -0400
commit442f5608aeddb5c627183e150a8c79c9d5bd2a57 (patch)
tree4346360538d0a50407ce7d76a5e8ce6b168c52aa /src/screens/profile/CaptionScreen.tsx
parentb4a4639f2ed05c02b9061d9febddf8339bc1fe26 (diff)
parent4849c65ff2163e1a77dcb26a12ff68840df225e7 (diff)
Merge branch 'master' into tma853-tag-selection-screen
# Conflicts: # src/components/common/index.ts # src/screens/profile/CaptionScreen.tsx
Diffstat (limited to 'src/screens/profile/CaptionScreen.tsx')
-rw-r--r--src/screens/profile/CaptionScreen.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/screens/profile/CaptionScreen.tsx b/src/screens/profile/CaptionScreen.tsx
index dbfb3a4a..2093a1f9 100644
--- a/src/screens/profile/CaptionScreen.tsx
+++ b/src/screens/profile/CaptionScreen.tsx
@@ -56,6 +56,7 @@ const CaptionScreen: React.FC<CaptionScreenProps> = ({route, navigation}) => {
const [loading, setLoading] = useState(false);
const [taggedUsers, setTaggedUsers] = useState<ProfilePreviewType[]>([]);
const [taggedList, setTaggedList] = useState<string>('');
+
useEffect(() => {
setTaggedUsers(selectedUsers ? selectedUsers : []);
}, [route.params]);
@@ -129,6 +130,7 @@ const CaptionScreen: React.FC<CaptionScreenProps> = ({route, navigation}) => {
/>
</View>
<CaptionScreenHeader style={styles.header} {...{title: title}} />
+ {/* this is the image we want to center our tags' initial location within */}
<Image
style={styles.image}
source={{uri: image.path}}