From 6fcfb36b37dd51d3e9d5baf025b896cc6f6045ee Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Fri, 23 Jul 2021 05:56:43 -0700 Subject: Remove lint warnings --- src/components/moments/MomentPost.tsx | 62 +++++++++++++++++++---------------- 1 file changed, 34 insertions(+), 28 deletions(-) (limited to 'src/components') diff --git a/src/components/moments/MomentPost.tsx b/src/components/moments/MomentPost.tsx index 42caea34..2e5807f4 100644 --- a/src/components/moments/MomentPost.tsx +++ b/src/components/moments/MomentPost.tsx @@ -240,34 +240,15 @@ const MomentPost: React.FC = ({ ); const ProgressBar = () => ( - + ); @@ -334,12 +315,12 @@ const MomentPost: React.FC = ({ {isVideoPaused && ( + style={[ + styles.pauseContainer, + { + opacity: fadeValue, + }, + ]}> )} @@ -494,6 +475,31 @@ const styles = StyleSheet.create({ width: SCREEN_WIDTH, height: SCREEN_HEIGHT, }, + pauseContainer: { + position: 'absolute', + left: '40%', + top: '50%', + }, + progressBar: { + position: 'absolute', + top: 0, + width: SCREEN_WIDTH, + height: 5, + }, + progressDot: { + backgroundColor: '#fff', + width: 10, + height: 10, + borderRadius: 10, + borderWidth: 0.3, + borderColor: TAGG_PURPLE, + position: 'absolute', + top: -2.5, + }, + progressBaContainer: { + position: 'absolute', + top: isIPhoneX() ? 75 : 70, + }, }); export default MomentPost; -- cgit v1.2.3-70-g09d2