aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-03-20 14:30:55 -0400
committerIvan Chen <ivan@tagg.id>2021-03-20 14:30:55 -0400
commit57529ed6e4f797e5e5a80983e498cf3f7309d052 (patch)
tree74fa9f373087f64457fe41e479dbfda9153dec53
parente389b1a1178b09e9367fb53ce53ad88011940639 (diff)
done
-rw-r--r--src/components/notifications/NotificationPrompts.tsx2
-rw-r--r--src/screens/profile/FriendsListScreen.tsx14
2 files changed, 11 insertions, 5 deletions
diff --git a/src/components/notifications/NotificationPrompts.tsx b/src/components/notifications/NotificationPrompts.tsx
index 03502b27..dc27925b 100644
--- a/src/components/notifications/NotificationPrompts.tsx
+++ b/src/components/notifications/NotificationPrompts.tsx
@@ -7,7 +7,7 @@ export const InviteFriendsPrompt: React.FC = () => {
<TaggPrompt
messageHeader={'Invite Friends To Tagg!'}
messageBody={
- 'A new feature that lets you invite your friends to Tagg. \nClick on yourfriends list to do so!'
+ 'A new feature that lets you invite your friends to Tagg. \nClick on your friends list to do so!'
}
logoType={'invite_friends'}
hideCloseButton={true}
diff --git a/src/screens/profile/FriendsListScreen.tsx b/src/screens/profile/FriendsListScreen.tsx
index 3016c767..886ab9c4 100644
--- a/src/screens/profile/FriendsListScreen.tsx
+++ b/src/screens/profile/FriendsListScreen.tsx
@@ -1,6 +1,12 @@
import {RouteProp} from '@react-navigation/native';
import React from 'react';
-import {SafeAreaView, StatusBar, StyleSheet, View} from 'react-native';
+import {
+ SafeAreaView,
+ ScrollView,
+ StatusBar,
+ StyleSheet,
+ View,
+} from 'react-native';
import {useSelector} from 'react-redux';
import {Friends, TabsGradient} from '../../components';
import {MainStackParams} from '../../routes';
@@ -26,9 +32,9 @@ const FriendsListScreen: React.FC<FriendsListScreenProps> = ({route}) => {
<>
<SafeAreaView>
<StatusBar barStyle="dark-content" />
- <View style={styles.body}>
+ <ScrollView style={styles.body}>
<Friends result={friends} screenType={screenType} userId={userXId} />
- </View>
+ </ScrollView>
</SafeAreaView>
<TabsGradient />
</>
@@ -46,7 +52,7 @@ const styles = StyleSheet.create({
body: {
marginTop: HeaderHeight,
width: SCREEN_WIDTH,
- height: SCREEN_HEIGHT * 0.8,
+ height: SCREEN_HEIGHT - HeaderHeight,
},
});