diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/moments/MomentPost.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/moments/MomentPost.tsx b/src/components/moments/MomentPost.tsx index 6cb812e7..3a96fe9a 100644 --- a/src/components/moments/MomentPost.tsx +++ b/src/components/moments/MomentPost.tsx @@ -195,7 +195,7 @@ const MomentPost: React.FC<MomentPostProps> = ({ screenType={screenType} editable={false} /> - <View style={{paddingHorizontal: '3%'}}> + <View style={styles.profilePreviewContainer}> <Text style={styles.headerText}>{user.username}</Text> <Text style={styles.viewCount}> {moment.view_count <= 9999 @@ -226,6 +226,7 @@ const MomentPost: React.FC<MomentPostProps> = ({ setAspectRatio(width / height); }} paused={moment.moment_id !== currentVisibleMomentId} + onEnd={updateMomentViewCount} /> </View> ) : ( @@ -450,6 +451,7 @@ const styles = StyleSheet.create({ width: SCREEN_WIDTH, height: SCREEN_HEIGHT, }, + profilePreviewContainer: {paddingHorizontal: '3%'}, }); export default MomentPost; |