From 404c4b6acf3c9b9f9f63894d8e0dab9920169d95 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Mon, 19 Jul 2021 17:04:36 -0400 Subject: Disable pinch in videos --- src/components/moments/MomentPost.tsx | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) (limited to 'src') 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 = ({ setFadeValue(new Animated.Value(0)); } }}> - + {isVideo ? ( {momentMedia} - {tagsVisible && !isVideo && ( - - null} - imageRef={imageRef} - /> - - )} - + ) : ( + + {momentMedia} + {tagsVisible && !isVideo && ( + + null} + imageRef={imageRef} + /> + + )} + + )}