forked from armandchbr/maestro-reach-issue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
77 lines (75 loc) · 1.98 KB
/
App.tsx
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
import { StatusBar } from "expo-status-bar";
import {
Button,
Keyboard,
KeyboardAvoidingView,
Platform,
SafeAreaView,
StyleSheet,
Text,
TextInput,
TouchableWithoutFeedback,
View,
} from "react-native";
export default function App() {
return (
<View style={styles.container}>
<SafeAreaView style={{ flex: 1 }}>
<TouchableWithoutFeedback onPress={Keyboard.dismiss}>
<KeyboardAvoidingView
style={{ flex: 1 }}
behavior={Platform.OS === "ios" ? "padding" : "height"}
>
<View style={{ marginTop: 20 }}>
<TextInput
autoFocus
placeholder="Email"
style={styles.input}
autoCorrect={false}
autoCapitalize="none"
autoComplete="email"
keyboardType="email-address"
textContentType="emailAddress"
testID="login_input_email"
/>
<View style={{ marginBottom: 20, height: 40 }}>
<TextInput
secureTextEntry
style={styles.input}
autoComplete="password"
textContentType="password"
placeholder={"Password"}
testID="login_input_password"
/>
</View>
</View>
<View style={{ flex: 1 }} />
<View style={{ marginBottom: 2 }}>
<Button
testID="login_cta_submit"
title={"Submit"}
onPress={() => {}}
/>
</View>
</KeyboardAvoidingView>
</TouchableWithoutFeedback>
</SafeAreaView>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#545454",
padding: 20,
},
input: {
color: "#000",
height: 60,
padding: 20,
borderColor: "#000",
borderWidth: 1,
marginBottom: 20,
borderRadius: 12,
},
});