diff options
author | Shravya Ramesh <shravs1208@gmail.com> | 2021-02-01 22:02:25 -0800 |
---|---|---|
committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-02-01 22:02:25 -0800 |
commit | 7361492c3d25f71bb444f5f7e35b3113647318f9 (patch) | |
tree | 83a3f1e64bc8a487393b17b337b83251c27ab0ce /src/screens | |
parent | 19f6a1cd849bec601440311dcb4188d7ff0b34ea (diff) |
fullscreen friends + unfriend button
Diffstat (limited to 'src/screens')
-rw-r--r-- | src/screens/profile/FriendsListScreen.tsx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/screens/profile/FriendsListScreen.tsx b/src/screens/profile/FriendsListScreen.tsx index ac3504d5..7ef5d752 100644 --- a/src/screens/profile/FriendsListScreen.tsx +++ b/src/screens/profile/FriendsListScreen.tsx @@ -1,8 +1,7 @@ -import React, {useState} from 'react'; +import React from 'react'; import {RouteProp, useNavigation} from '@react-navigation/native'; -import {TabsGradient, Friends, CenteredView} from '../../components'; -import {ScrollView} from 'react-native-gesture-handler'; -import {SCREEN_HEIGHT, SCREEN_WIDTH} from '../../utils'; +import {TabsGradient, Friends} from '../../components'; +import {normalize, SCREEN_HEIGHT, SCREEN_WIDTH} from '../../utils'; import { SafeAreaView, StyleSheet, @@ -11,8 +10,6 @@ import { View, } from 'react-native'; import {ProfileStackParams} from '../../routes'; -import {ProfilePreviewType} from '../../types'; -import {EMPTY_PROFILE_PREVIEW_LIST} from '../../store/initialStates'; import {useSelector} from 'react-redux'; import {RootState} from '../../store/rootReducer'; import BackIcon from '../../assets/icons/back-arrow.svg'; @@ -47,7 +44,7 @@ const FriendsListScreen: React.FC<FriendsListScreenProps> = ({route}) => { <Text style={styles.headerText}>Friends</Text> </View> <View style={styles.body}> - <Friends result={friends} screenType={screenType} userXId={userXId} /> + <Friends result={friends} screenType={screenType} userId={userXId} /> </View> </SafeAreaView> <TabsGradient /> @@ -88,7 +85,7 @@ const styles = StyleSheet.create({ headerText: { position: 'absolute', alignSelf: 'center', - fontSize: 20.5, + fontSize: normalize(20.5), fontWeight: '600', }, headerButton: { |