-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
51 lines (46 loc) · 1.18 KB
/
App.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
import React from 'react';
import { StyleSheet, Text, View, Image, Button } from 'react-native';
export default class Main extends React.Component {
constructor(props) {
super(props);
this.state = {
text: ''
}
}
render() {
return (
<View style={styles.container}>
<View style={{ flex: 2, alignItems: 'center' }}>
<Image
source={{ uri: 'https://user-images.githubusercontent.com/334762/33426745-da7e4798-d5fd-11e7-826a-5edfa3ad5703.jpg' }}
style={{ width: 150, height: 150, marginTop: 100 }}
/>
</View>
<View style={{
marginTop: 50,
flex: 2,
justifyContent: 'flex-start',
alignItems: 'center'
}}>
<Text> Welcome to The New World </Text>
</View>
<View style={{ flex: 1 }}>
<Button
title="Enter"
onPress={() =>
console.log('Clicked the Button')
}
/>
</View>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
flexDirection: 'column',
justifyContent: 'space-between',
backgroundColor: '#fff',
},
});