From 4e1172ba83a920a11ffac6c8d6b0362deaf2b965 Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Fri, 23 Jul 2021 16:38:06 -0700 Subject: Fix pause icon not clickable issue --- src/components/moments/MomentPost.tsx | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'src') diff --git a/src/components/moments/MomentPost.tsx b/src/components/moments/MomentPost.tsx index f6917784..c232986d 100644 --- a/src/components/moments/MomentPost.tsx +++ b/src/components/moments/MomentPost.tsx @@ -237,8 +237,18 @@ const MomentPost: React.FC = ({ } }} onEnd={updateMomentViewCount} - /> + {isVideoPaused && ( + + + + )} ) : ( = ({ )} - {isVideoPaused && ( - - - - )} @@ -499,7 +498,7 @@ const styles = StyleSheet.create({ pauseContainer: { position: 'absolute', left: '40%', - top: '50%', + top: '40%', }, progressBar: { position: 'absolute', -- cgit v1.2.3-70-g09d2