-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
103 lines (89 loc) · 1.82 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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/* by : Tiago Ribeiro Santos
Date : 02/10/2020
*/
import React, { Component } from 'react';
import {
ImageBackground,
Alert,
Text,
View,
StyleSheet,
Image,
TextInput,
TouchableOpacity,
} from 'react-native';
export default class App extends Component {
clicou = () => {
Alert.alert('Food App', 'Você clicou em mim!');
};
render() {
return (
<View style={styles.container}>
<Text style={styles.titulo}>Login Food Mobile </Text>
<TextInput style={styles.input} placeholder="Digite Seu Email" />
<TextInput
style={styles.input}
secureTextEntry={true}
placeholder="Digite Sua Senha"
/>
<TouchableOpacity
style={styles.button}
onPress={() => {
this.clicou();
}}>
<Text style={styles.botaoText}>Login</Text>
</TouchableOpacity>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: 'red',
},
titulo: {
fontSize: 20,
fontWeight: 'bold',
textAlign: 'center',
color: 'white',
},
logo: {
width: '80%',
height: 70,
},
/* fundo: {
flex: 1,
width: '100%',
height: '100%',
justifyContent: "center",
alignItems: "center",
opacity: 0.5,
}, */
input: {
paddingHorizontal: 20,
paddingVertical: 15,
borderRadius: 5,
backgroundColor: 'black',
alignSelf: 'stretch',
marginBottom: 15,
marginHorizontal: 20,
fontSize: 16,
},
button: {
width: '55%',
height: 42,
backgroundColor: 'black',
marginTop: 10,
borderRadius: 3,
alignItems: 'center',
justifyContent: 'center',
},
botaoText: {
color: 'white',
fontSize: 14,
fontWeight: 'bold',
},
});