From 48acc579d495256956989af46f5b3338a20afbe8 Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Wed, 3 Feb 2021 18:22:24 -0800 Subject: friends style --- src/components/profile/Friends.tsx | 83 ++++++++++++++++++------------- src/components/profile/ProfilePreview.tsx | 12 ++--- src/screens/profile/FriendsListScreen.tsx | 6 ++- 3 files changed, 58 insertions(+), 43 deletions(-) (limited to 'src') diff --git a/src/components/profile/Friends.tsx b/src/components/profile/Friends.tsx index 44ce4e63..c1aa5c76 100644 --- a/src/components/profile/Friends.tsx +++ b/src/components/profile/Friends.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import {View, StyleSheet, ScrollView} from 'react-native'; +import {View, StyleSheet, ScrollView, Text} from 'react-native'; import {ProfilePreviewType, ScreenType} from '../../types'; import {ProfilePreview} from '..'; import {Button} from 'react-native-elements'; @@ -9,6 +9,7 @@ import {RootState} from '../../store/rootReducer'; import {useDispatch, useStore} from 'react-redux'; import {handleUnfriend} from '../../utils/friends'; import {NO_USER} from '../../store/initialStates'; +import {TouchableOpacity} from 'react-native-gesture-handler'; interface FriendsProps { result: Array; @@ -29,23 +30,26 @@ const Friends: React.FC = ({result, screenType, userId}) => { style={styles.scrollView} contentContainerStyle={styles.scrollViewContent} showsVerticalScrollIndicator={false}> + + Friends + {result.map((profilePreview) => ( - + + + {loggedInUser.userId === userId && ( -