aboutsummaryrefslogtreecommitdiff
path: root/src/screens
diff options
context:
space:
mode:
authorShravya Ramesh <shravs1208@gmail.com>2021-03-05 13:23:01 -0800
committerShravya Ramesh <shravs1208@gmail.com>2021-03-05 13:23:01 -0800
commit6dd1ab792366f9ef5b7495723297b753cbd958c8 (patch)
tree5a319976e7f2205db993cf0d4eb2c4f79bf28719 /src/screens
parent2e2e56595b8b085b3cbc84d9125969ae22092443 (diff)
Added university icon to suggested people
Diffstat (limited to 'src/screens')
-rw-r--r--src/screens/suggestedPeople/SPBody.tsx48
1 files changed, 28 insertions, 20 deletions
diff --git a/src/screens/suggestedPeople/SPBody.tsx b/src/screens/suggestedPeople/SPBody.tsx
index 16b5ae9b..21e86f14 100644
--- a/src/screens/suggestedPeople/SPBody.tsx
+++ b/src/screens/suggestedPeople/SPBody.tsx
@@ -12,8 +12,8 @@ import {
ScreenType,
SuggestedPeopleDataType,
} from '../../types';
-import {normalize, SCREEN_HEIGHT, SCREEN_WIDTH} from '../../utils';
-import UniversityIcon from '../../components/profile';
+import {isIPhoneX, normalize, SCREEN_HEIGHT, SCREEN_WIDTH} from '../../utils';
+import UniversityIcon from '../../components/profile/UniversityIcon';
interface SPBodyProps {
item: SuggestedPeopleDataType;
index: number;
@@ -87,24 +87,22 @@ const SPBody: React.FC<SPBodyProps> = ({
<View>
{backgroundImage}
<View style={styles.mainContainer}>
- <Text style={styles.title}>{firstItem && 'Suggested People'}</Text>
- <TouchableOpacity
- style={{
- backgroundColor: 'indianred',
- width: 60,
- height: 60,
- borderRadius: 30,
- borderWidth: 1,
- borderColor: 'transparent',
- }}
- onPress={() =>
- navigation.navigate('MutualBadgeHolders', {
- badge_id: 40,
- badge_title: 'Brown University Football',
- })
- }>
- {/* <UniversityIcon university="brown" /> */}
- </TouchableOpacity>
+ <View style={styles.topContainer}>
+ <Text style={styles.title}>{firstItem && 'Suggested People'}</Text>
+ <TouchableOpacity
+ onPress={() =>
+ navigation.navigate('MutualBadgeHolders', {
+ badge_id: 40,
+ badge_title: 'Brown University Football',
+ })
+ }>
+ <UniversityIcon
+ university="brown"
+ style={styles.universityIconContainer}
+ imageStyle={{width: normalize(31), height: normalize(38)}}
+ />
+ </TouchableOpacity>
+ </View>
<View style={styles.body}>
<View style={styles.marginManager}>
<View style={styles.addUserContainer}>
@@ -149,6 +147,16 @@ const styles = StyleSheet.create({
justifyContent: 'space-between',
alignSelf: 'center',
},
+ topContainer: {
+ height: isIPhoneX() ? SCREEN_HEIGHT * 0.11 : SCREEN_HEIGHT * 0.13,
+ flexDirection: 'column',
+ justifyContent: 'space-between',
+ },
+ universityIconContainer: {
+ width: normalize(31),
+ height: normalize(38),
+ left: '5%',
+ },
marginManager: {marginHorizontal: '5%'},
image: {
position: 'absolute',