-
Notifications
You must be signed in to change notification settings - Fork 0
/
HomeScreen.js
39 lines (34 loc) · 1.12 KB
/
HomeScreen.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
import React from 'react';
import { StyleSheet, Text, View, Image, TouchableHighlight, TouchableOpacity } from 'react-native';
import { StackNavigator } from 'react-navigation';
export default class HomeScreen extends React.Component {
static navigationOptions = {header: null }
render() {
const {navigate} = this.props.navigation;
return (
<View style={styles.container}>
<Text style={{fontFamily: 'Avenir', fontWeight: 'bold', fontSize: 30, marginBottom: 10}}>
Remigijus Balčiūnas</Text>
<Image style={{height: 240, width: 200}}
source={require('./as.jpg')}/>
<TouchableOpacity style={styles.button}
onPress={() => navigate('Data')}>
<Text style={{fontFamily: 'Avenir'}}>My profile</Text>
</TouchableOpacity>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
marginVertical: 100,
},
button: {
borderWidth: 1,
marginTop: 30,
padding: 10,
paddingHorizontal: 40
}
})