diff options
author | Ivan Chen <ivan@tagg.id> | 2021-07-19 17:04:36 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-07-19 17:04:36 -0400 |
commit | 404c4b6acf3c9b9f9f63894d8e0dab9920169d95 (patch) | |
tree | 2286ee256ccd84123a559e5e262e883324b217f7 /src | |
parent | f2f6ac7f517cd7dadcf5e634dc46f6c617acbb9c (diff) |
Disable pinch in videos
Diffstat (limited to 'src')
-rw-r--r-- | src/components/moments/MomentPost.tsx | 30 |
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 |