diff options
author | Shravya Ramesh <shravs1208@gmail.com> | 2021-07-23 16:38:06 -0700 |
---|---|---|
committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-07-23 16:38:06 -0700 |
commit | 4e1172ba83a920a11ffac6c8d6b0362deaf2b965 (patch) | |
tree | a7853764a4f785af5715c05cae24dc3dc5ddf337 /src | |
parent | 93b0bdb6d5d3070ece012626f9d9d6634f0eb0d8 (diff) |
Fix pause icon not clickable issue
Diffstat (limited to 'src')
-rw-r--r-- | src/components/moments/MomentPost.tsx | 25 |
1 files changed, 12 insertions, 13 deletions
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<MomentPostProps> = ({ } }} onEnd={updateMomentViewCount} - /> + {isVideoPaused && ( + <Animated.View + style={[ + styles.pauseContainer, + { + opacity: fadeValue, + }, + ]}> + <PauseIcon width={100} height={100} /> + </Animated.View> + )} </View> ) : ( <Image @@ -324,17 +334,6 @@ const MomentPost: React.FC<MomentPostProps> = ({ )} </TouchableWithoutFeedback> <View style={styles.bottomContainer} pointerEvents={'box-none'}> - {isVideoPaused && ( - <Animated.View - style={[ - styles.pauseContainer, - { - opacity: fadeValue, - }, - ]}> - <PauseIcon width={100} height={100} /> - </Animated.View> - )} <KeyboardAvoidingView behavior={Platform.OS === 'ios' ? 'padding' : 'height'} keyboardVerticalOffset={-20}> @@ -499,7 +498,7 @@ const styles = StyleSheet.create({ pauseContainer: { position: 'absolute', left: '40%', - top: '50%', + top: '40%', }, progressBar: { position: 'absolute', |