diff options
author | Ivan Chen <ivan@tagg.id> | 2021-07-16 14:43:52 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-07-16 14:43:52 -0400 |
commit | 3c3a5ab63ce05d9212d222584e23d5a5005c139b (patch) | |
tree | b0c9e2496087efeb0adf309e9bbd2304afc16a9c | |
parent | 17ac3b21f6db0107d3c5eeb8885884fa8cfa5a72 (diff) |
Hide tags during upload
-rw-r--r-- | src/screens/moments/TagFriendsScreen.tsx | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/src/screens/moments/TagFriendsScreen.tsx b/src/screens/moments/TagFriendsScreen.tsx index fc3bccf2..d11f8049 100644 --- a/src/screens/moments/TagFriendsScreen.tsx +++ b/src/screens/moments/TagFriendsScreen.tsx @@ -188,13 +188,17 @@ const TagFriendsScreen: React.FC<TagFriendsScreenProps> = ({route}) => { /> </View> </TouchableOpacity> - <TouchableWithoutFeedback style={styles.captionContainer}> - {tags.length === 0 ? ( - <Text style={styles.header}>Tap on photo to tag friends!</Text> - ) : ( - <Text style={styles.header}>Press and drag to move</Text> - )} - </TouchableWithoutFeedback> + {!media.isVideo ? ( + <TouchableWithoutFeedback style={styles.headerContainer}> + {tags.length === 0 ? ( + <Text style={styles.header}>Tap on photo to tag friends!</Text> + ) : ( + <Text style={styles.header}>Press and drag to move</Text> + )} + </TouchableWithoutFeedback> + ) : ( + <View style={styles.headerPlaceholder} /> + )} <TouchableOpacity style={styles.buttonContainer} // Altering the opacity style of TouchableOpacity doesn't work, @@ -213,7 +217,7 @@ const TagFriendsScreen: React.FC<TagFriendsScreenProps> = ({route}) => { </Text> </TouchableOpacity> </View> - {tags.length !== 0 && ( + {tags.length !== 0 && !media.isVideo && ( <MomentTags tags={tags} setTags={setTags} @@ -260,12 +264,15 @@ const styles = StyleSheet.create({ flexDirection: 'row', justifyContent: 'flex-end', }, - captionContainer: { + headerContainer: { width: SCREEN_WIDTH, flexDirection: 'row', justifyContent: 'center', zIndex: 9999, }, + headerPlaceholder: { + width: SCREEN_WIDTH * 0.5, + }, shareButtonTitle: { fontWeight: 'bold', fontSize: 18, |