-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.js
42 lines (38 loc) · 1002 Bytes
/
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
import React, {Component} from 'react'
import {StyleSheet, Text, TouchableOpacity, View} from 'react-native'
class Profile extends Component {
render() {
const {navigate} = this.props.navigation
return (
<View style={styles.container}>
<TouchableOpacity onPress={() => navigate('Friends', {user: 'Joe', friends: ['Anthony', 'Christina', 'Chelsie']})}>
<View style={styles.button}>
<Text style={styles.text}>View friends</Text>
</View>
</TouchableOpacity>
</View>
)
}
}
const styles = StyleSheet.create({
button: {
alignItems : 'center',
alignSelf : 'center',
backgroundColor: 'blue',
borderRadius : 5,
height : 50,
justifyContent : 'center',
width : 200,
},
container: {
alignItems : 'center',
flex : 1,
justifyContent: 'center'
},
text: {
color: 'white',
fontSize: 25,
fontWeight: 'bold'
},
})
export default Profile