-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.js
82 lines (78 loc) · 1.65 KB
/
profile.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import React, { Component } from 'react';
import {
View,
Text,
StyleSheet,
TextInput,
ToastAndroid,
DrawerLayoutAndroid,
TouchableOpacity,
BackHandler,
Platform,
StatusBar,
Image } from 'react-native';
import { Avatar } from 'react-native-elements'
export default class Profile extends Component {
render() {
return (
<View style={styles.container}>
<View style={styles.profileContainer}>
<Avatar
large
rounded
icon={{name: 'person', color: '#800080'}}
//source={{uri: "https://s3.amazonaws.com/uifaces/faces/twitter/kfriedson/128.jpg"}}
/>
<Text style={styles.profileName}>Jonathan Lim</Text>
</View>
<View style={{flex: 3}}>
<Text>Profile Content</Text>
</View>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
navBarContainer: {
backgroundColor: '#800080',
flexDirection: 'row',
marginBottom: 10,
paddingHorizontal: 20,
paddingVertical: 15,
justifyContent: 'space-between',
paddingTop: 15
},
imageContainer: {
flex: 1,
alignItems: 'center',
justifyContent: 'center'
},
profileButtonContainer: {
flex: 1,
justifyContent: 'center'
},
profileButton: {
width: 30,
height: 30
},
image: {
width: 40,
height: 40
},
extraContainer: {
flex: 1
},
profileContainer: {
flex: 1,
justifyContent: 'space-around',
alignItems: 'center',
backgroundColor: '#800080'
},
profileName: {
fontSize: 18,
color: 'white'
},
})