diff options
author | Shravya Ramesh <shravs1208@gmail.com> | 2021-02-06 16:17:49 -0800 |
---|---|---|
committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-02-06 16:17:49 -0800 |
commit | beefe8db13c026811c8beae7c05b49538c9afc4c (patch) | |
tree | e98ea32cb65157f7972fb9c602074f8606ee48fb /src | |
parent | 13b844de3a9fd4e9492cbad123b4892a7b0c4fba (diff) |
issues fixed
Diffstat (limited to 'src')
-rw-r--r-- | src/components/profile/Friends.tsx | 9 | ||||
-rw-r--r-- | src/screens/profile/FriendsListScreen.tsx | 8 |
2 files changed, 6 insertions, 11 deletions
diff --git a/src/components/profile/Friends.tsx b/src/components/profile/Friends.tsx index 9b9e5302..da289e8a 100644 --- a/src/components/profile/Friends.tsx +++ b/src/components/profile/Friends.tsx @@ -26,11 +26,10 @@ const Friends: React.FC<FriendsProps> = ({result, screenType, userId}) => { return ( <> <View style={styles.subheader}> - <Text style={styles.subheaderText}>Friends</Text> + {/* <Text style={styles.subheaderText}>Friends</Text> */} </View> <ScrollView keyboardShouldPersistTaps={'always'} - stickyHeaderIndices={[4]} style={styles.scrollView} contentContainerStyle={styles.scrollViewContent} showsVerticalScrollIndicator={false}> @@ -64,20 +63,18 @@ const styles = StyleSheet.create({ flexDirection: 'column', alignSelf: 'center', width: SCREEN_WIDTH * 0.85, - height: SCREEN_HEIGHT, }, scrollViewContent: { alignSelf: 'center', - paddingBottom: SCREEN_HEIGHT / 15, + paddingBottom: SCREEN_HEIGHT / 7, width: SCREEN_WIDTH * 0.85, - height: SCREEN_HEIGHT * 0.75, marginTop: '1%', }, header: {flexDirection: 'row'}, subheader: { alignSelf: 'center', width: SCREEN_WIDTH * 0.85, - marginVertical: '3%', + marginVertical: '1%', }, subheaderText: { color: '#828282', diff --git a/src/screens/profile/FriendsListScreen.tsx b/src/screens/profile/FriendsListScreen.tsx index 26d19e60..b2123f44 100644 --- a/src/screens/profile/FriendsListScreen.tsx +++ b/src/screens/profile/FriendsListScreen.tsx @@ -31,7 +31,7 @@ const FriendsListScreen: React.FC<FriendsListScreenProps> = ({route}) => { : useSelector((state: RootState) => state.friends); return ( - <View style={styles.background}> + <> <SafeAreaView> <View style={styles.header}> <TouchableOpacity @@ -43,12 +43,10 @@ const FriendsListScreen: React.FC<FriendsListScreenProps> = ({route}) => { </TouchableOpacity> <Text style={styles.headerText}>Friends</Text> </View> - <View style={styles.body}> - <Friends result={friends} screenType={screenType} userId={userXId} /> - </View> + <Friends result={friends} screenType={screenType} userId={userXId} /> </SafeAreaView> <TabsGradient /> - </View> + </> ); }; |