-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathtest.js
121 lines (113 loc) · 2.54 KB
/
test.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
import React from 'react';
import {
View,
Text,
StyleSheet,
Dimensions,
SafeAreaView,
Image,
TextInput,
TouchableOpacity,
} from 'react-native';
const Dev_Height = Dimensions.get('window').height;
const Dev_Width = Dimensions.get('window').width;
export default class App extends React.Component {
render() {
return (
<SafeAreaView style={styles.container}>
<View style={styles.logomainview}>
<Image
source={require('./assets/logo.png')}
style={styles.image}
resizeMode="contain"
/>
</View>
<View style={styles.textinputmainview}>
<TextInput
style={styles.textinput}
placeholder="Phone Number, Username or Email "
/>
</View>
<View style={styles.textinputmainview}>
<TextInput style={styles.textinput} placeholder="Password" />
</View>
<View style={styles.forgotpasswordview}>
<TouchableOpacity>
<Text style={styles.forgotpasstext}>Forgot Password ?</Text>
</TouchableOpacity>
</View>
<View style={styles.buttonview}>
<TouchableOpacity style={styles.buttontouch}>
<Text style={styles.logintext}>Login</Text>
</TouchableOpacity>
</View>
</SafeAreaView>
);
}
}
const styles = StyleSheet.create({
container: {
height: Dev_Height,
width: Dev_Width,
backgroundColor: '#FFF',
},
helloworld: {
fontSize: 40,
color: 'red',
},
image: {
height: '80%',
width: '100%',
},
logomainview: {
height: '15%',
width: '100%',
justifyContent: 'center',
alignItems: 'center',
},
textinputmainview: {
height: '10%',
width: '100%',
justifyContent: 'center',
alignItems: 'center',
},
textinput: {
height: '80%',
width: '90%',
borderWidth: 1,
borderColor: '#E4E5E5',
borderRadius: 10,
backgroundColor: '#FAFAFA',
paddingHorizontal: 10,
},
forgotpasswordview: {
height: '10%',
width: '100%',
justifyContent: 'center',
},
forgotpasstext: {
fontSize: 15,
color: '#009AFF',
justifyContent: 'center',
marginLeft: '60%',
},
buttonview: {
height: '10%',
width: '100%',
justifyContent: 'center',
alignItems: 'center',
},
buttontouch: {
height: '80%',
width: '90%',
backgroundColor: '#00CEFF',
borderRadius:10,
justifyContent:"center",
alignItems: 'center',
},
logintext:{
fontSize:16,
color:"#FFF",
fontWeight:"bold",
}
});