-
Notifications
You must be signed in to change notification settings - Fork 0
/
FormStyle.js
65 lines (63 loc) · 1.26 KB
/
FormStyle.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
import { StyleSheet, Platform } from "react-native";
import Constants from "expo-constants";
const HEADER_BACKGROUND = "#3498db";
const CONTENT_BACKGROUND = "#f9f9f9";
export const styles = StyleSheet.create({
topSafeArea: {
backgroundColor: HEADER_BACKGROUND,
},
container: {
flex: 1,
paddingTop: Constants.statusBarHeight,
backgroundColor:
Platform.OS === "ios" ? CONTENT_BACKGROUND : HEADER_BACKGROUND,
},
header: {
height: 60,
justifyContent: "center",
alignItems: "center",
backgroundColor: HEADER_BACKGROUND,
},
headerText: {
color: "#fff",
fontSize: 18,
},
content: {
padding: 20,
backgroundColor: CONTENT_BACKGROUND,
},
formGroup: {
marginBottom: 10,
},
label: {
color: "#7d7e79",
fontSize: 16,
lineHeight: 30,
},
input: {
height: 50,
paddingHorizontal: 20,
borderRadius: 5,
borderWidth: 2,
borderColor: "#e3e3e3",
backgroundColor: "#fff",
},
errorContainer: {
marginVertical: 5,
},
errorText: {
color: "#ff7675",
},
button: {
marginTop: 20,
backgroundColor: "#2980b9",
padding: 15,
borderRadius: 15,
},
buttonText: {
color: "#fff",
fontWeight: "bold",
fontSize: 18,
textAlign: "center",
},
});