-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.js
43 lines (42 loc) · 1.45 KB
/
header.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import React from 'react';
import {View, Text} from 'react-native';
import {TouchableOpacity} from 'react-native-gesture-handler';
import {SafeAreaView} from 'react-native-safe-area-context';
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
import {PhotogramText} from './src/Components/Text/PhotoGramText';
import {padding} from './src/Utils/constants/styles';
export default function EditProfileheader({onUpdate, navigation}) {
return (
<View style={{backgroundColor: '#FFF', padding: padding - 4}}>
<SafeAreaView
style={{flexDirection: 'row', justifyContent: 'space-between'}}>
<TouchableOpacity onPress={() => navigation.goBack()}>
<MaterialIcons name="close" size={28} color="#000" />
</TouchableOpacity>
<PhotogramText
text={'Edit Profile'}
fontSize={padding - 3}
fontWeight={'h1'}
extraStyles={{
left: 0,
alignSelf: 'flex-start',
fontWeight: 'bold',
fontSize: padding - 3,
}}
/>
{/* <Text
style={{
position: 'absolute',
left: padding + 18,
fontWeight: 'bold',
fontSize: padding - 3,
}}>
Edit Profile
</Text> */}
<TouchableOpacity onPress={() => onUpdate()}>
<MaterialIcons name="done" size={28} color="#128EF2" />
</TouchableOpacity>
</SafeAreaView>
</View>
);
}