From d7ed9541f47c22d93c43a32baf3bf33d68d823c8 Mon Sep 17 00:00:00 2001 From: Shravya Ramesh <37447613+shravyaramesh@users.noreply.github.com> Date: Mon, 9 Nov 2020 11:30:26 -0800 Subject: blur background, realign comment count, reposition content (#110) --- src/components/comments/CommentsCount.tsx | 4 ++-- src/routes/profile/Profile.tsx | 2 +- src/screens/profile/IndividualMoment.tsx | 19 ++++++++++++------- 3 files changed, 15 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/components/comments/CommentsCount.tsx b/src/components/comments/CommentsCount.tsx index bd87a2b2..a9d5b6d6 100644 --- a/src/components/comments/CommentsCount.tsx +++ b/src/components/comments/CommentsCount.tsx @@ -45,12 +45,12 @@ const styles = StyleSheet.create({ width: 21, height: 21, }, - count: { position: 'relative', fontWeight: 'bold', color: 'white', - paddingTop: '2%', + paddingTop: '3%', + textAlign: 'center', }, }); diff --git a/src/routes/profile/Profile.tsx b/src/routes/profile/Profile.tsx index 794700f3..abf967c6 100644 --- a/src/routes/profile/Profile.tsx +++ b/src/routes/profile/Profile.tsx @@ -46,7 +46,7 @@ const Profile: React.FC = ({route}) => { }), }, overlayStyle: { - backgroundColor: '#808080', + backgroundColor: '#505050', opacity: progress.interpolate({ inputRange: [0, 1], outputRange: [0, 0.9], diff --git a/src/screens/profile/IndividualMoment.tsx b/src/screens/profile/IndividualMoment.tsx index b76f36d0..a6f917b7 100644 --- a/src/screens/profile/IndividualMoment.tsx +++ b/src/screens/profile/IndividualMoment.tsx @@ -1,6 +1,7 @@ import React, {useEffect, useState} from 'react'; -import {StyleSheet, View, Image} from 'react-native'; +import {StyleSheet, View, Image, Text} from 'react-native'; import {Button} from 'react-native-elements'; +import {BlurView} from '@react-native-community/blur'; import { SCREEN_HEIGHT, SCREEN_WIDTH, @@ -85,7 +86,11 @@ const IndividualMoment: React.FC = ({ }, [date_time, userId]); return ( - +