aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/moments/MomentPost.tsx30
1 files changed, 17 insertions, 13 deletions
diff --git a/src/components/moments/MomentPost.tsx b/src/components/moments/MomentPost.tsx
index 843e049f..29b82cec 100644
--- a/src/components/moments/MomentPost.tsx
+++ b/src/components/moments/MomentPost.tsx
@@ -262,20 +262,24 @@ const MomentPost: React.FC<MomentPostProps> = ({
setFadeValue(new Animated.Value(0));
}
}}>
- <Pinchable>
+ {isVideo ? (
<View style={styles.mediaContainer}>{momentMedia}</View>
- {tagsVisible && !isVideo && (
- <Animated.View
- style={[styles.tagsContainer, {opacity: fadeValue}]}>
- <MomentTags
- editing={false}
- tags={tags}
- setTags={() => null}
- imageRef={imageRef}
- />
- </Animated.View>
- )}
- </Pinchable>
+ ) : (
+ <Pinchable>
+ <View style={styles.mediaContainer}>{momentMedia}</View>
+ {tagsVisible && !isVideo && (
+ <Animated.View
+ style={[styles.tagsContainer, {opacity: fadeValue}]}>
+ <MomentTags
+ editing={false}
+ tags={tags}
+ setTags={() => null}
+ imageRef={imageRef}
+ />
+ </Animated.View>
+ )}
+ </Pinchable>
+ )}
</TouchableWithoutFeedback>
<View style={styles.bottomContainer} pointerEvents={'box-none'}>
<KeyboardAvoidingView