diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/moments/MomentPost.tsx | 45 |
1 files changed, 13 insertions, 32 deletions
diff --git a/src/components/moments/MomentPost.tsx b/src/components/moments/MomentPost.tsx index 57c42654..62758865 100644 --- a/src/components/moments/MomentPost.tsx +++ b/src/components/moments/MomentPost.tsx @@ -260,20 +260,6 @@ const MomentPost: React.FC<MomentPostProps> = ({ /> ); - const ProgressBar = () => ( - <View style={styles.progressBaContainer}> - <Progress.Bar - progress={videoProgress} - width={SCREEN_WIDTH} - color={'white'} - borderRadius={0} - borderWidth={0} - height={3} - unfilledColor={'rgba(255,255,255,0.4)'} - /> - </View> - ); - return ( <> <StatusBar barStyle={'light-content'} /> @@ -374,22 +360,20 @@ const MomentPost: React.FC<MomentPostProps> = ({ ), })} <View> - <AddComment - placeholderText={'Add a comment here!'} - momentId={moment.moment_id} - callback={() => { - setCommentCount(commentCount + 1); - }} - onFocus={() => { - setHideText(true); - }} - isKeyboardAvoiding={false} - theme={'dark'} - /> - {isVideo && <ProgressBar />} <Text style={styles.text}> {getTimePosted(moment.date_created)} </Text> + {isVideo && ( + <Progress.Bar + progress={videoProgress} + width={SCREEN_WIDTH} + color={'white'} + borderRadius={0} + borderWidth={0} + height={3} + unfilledColor={'rgba(255,255,255,0.4)'} + /> + )} </View> </KeyboardAvoidingView> </View> @@ -409,7 +393,8 @@ const styles = StyleSheet.create({ color: 'white', fontWeight: '500', textAlign: 'right', - marginTop: 18, + marginTop: 10, + marginBottom: 10, }, captionText: { position: 'relative', @@ -516,10 +501,6 @@ const styles = StyleSheet.create({ position: 'absolute', top: -2.5, }, - progressBaContainer: { - position: 'absolute', - top: isIPhoneX() ? 75 : 70, - }, profilePreviewContainer: {paddingHorizontal: '3%'}, }); |