-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
107 lines (99 loc) · 2.32 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
103
104
105
106
107
import { StatusBar } from "expo-status-bar";
import React, { useState } from "react";
import {
StyleSheet,
Text,
View,
Image,
TextInput,
Button,
TouchableOpacity,
} from "react-native";
export default function App() {
const [email, setEmail] = useState("");
const [password, setPassword] = useState("");
const Press=()=>{
console.warn( {email},{password} );
}
return (
<View style={styles.container}>
<Image style={styles.image} source={require("./assets/images.png")} />
<StatusBar style="auto" />
<View style={styles.inputView}>
<TextInput
style={styles.TextInput}
placeholder="Email"
placeholderTextColor="#003f5c"
value={email}
onChangeText={(val) => setEmail(val)}
/>
</View>
<View style={styles.inputView}>
<TextInput
style={styles.TextInput}
placeholder="Password"
placeholderTextColor="#003f5c"
secureTextEntry={true}
value={password}
onChangeText={(val) => setPassword(val)}
/>
</View>
<TouchableOpacity style={styles.loginBtn} onPress={Press}>
<Text style={styles.loginText}>LOGIN</Text>
</TouchableOpacity>
<View>
<View >
<Text style={styles.forgot_button}>Don't Have an Account? </Text>
<TouchableOpacity style={{alignItems:'center'}}><Text style={styles.innertext}>Sign up</Text></TouchableOpacity>
</View>
</View>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
image: {
marginBottom: 40,
height:'20%',
width:'50%',
resizeMode:'contain',
},
inputView: {
backgroundColor: "#FFC0CB",
borderRadius: 10,
width: "80%",
height: 45,
marginBottom: 20,
},
TextInput: {
height: 50,
flex: 1,
padding: 10,
marginLeft: 0,
},
forgot_button: {
fontSize:15,
marginBottom: 30,
color:'grey',
paddingTop:20,
},
innertext:{
fontSize:20,
fontWeight:600,
color:'blue',
},
loginBtn: {
width: "80%",
borderRadius: 25,
height: 55,
alignItems: "center",
justifyContent: "center",
marginTop: 20,
backgroundColor: "#FF1493",
},
});