-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathReport3.js
More file actions
147 lines (136 loc) · 4.29 KB
/
Report3.js
File metadata and controls
147 lines (136 loc) · 4.29 KB
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
import React from 'react';
import { StyleSheet, Text, View, Image, ScrollView, TouchableOpacity, TextInput, } from 'react-native';
/**
* Icons made by <a href="https://www.flaticon.com/authors/kiranshastry"
* title="Kiranshastry">Kiranshastry</a> from <a href="https://www.flaticon.com/" title="Flaticon">
* www.flaticon.com</a>
*/
class Report3 extends React.Component {
state = {
phoneNum: '',
description: '',
email: '',
}
render() {
return (
<ScrollView
style={styles.container}
>
<Image
style= {styles.backgroundImage}
source= {require('./assets/newBG3.png')}
/>
<View>
<Text style={[{ color: 'white' }, { marginTop: 50 }, { marginLeft: 20 }, { fontWeight: 'bold' }, { fontSize: 25 }]}>
What happened?
</Text>
<View style={styles.container2}>
<Text style={styles.subtitle}>Description</Text>
<TextInput
style={styles.input}
placeholder='Brief Description'
placeholderTextColor='white'
onChangeText={(location) => this.setState({location})} />
</View>
<Text style={[{ color: 'white' }, { marginTop: 50 }, { marginLeft: 20 }, { fontWeight: 'bold' }, { fontSize: 25 }]}>
How can we reach you?
</Text>
<View style={styles.container3}>
<Text style={styles.subtitle}>Phone Number</Text>
<TextInput
style={styles.input}
placeholder='Phone'
placeholderTextColor='white'
onChangeText={(location) => this.setState({location})} />
<Text style={styles.subtitle}>Email</Text>
<TextInput
style={styles.input}
placeholder='Email(Optional)'
placeholderTextColor='white'
onChangeText={(location) => this.setState({location})} />
</View>
<TouchableOpacity
style={styles.next}
onPress={() =>
this.props.navigation.navigate('Report4')}
>
<Text style={[{color: 'white'}, {fontWeight: 'bold'}, {fontSize: 20}, {marginRight: 10}]}> NEXT</Text>
</TouchableOpacity>
</View>
<View>
</View>
</ScrollView>
);
};
}
const styles = StyleSheet.create({
backgroundImage:{
position: 'absolute',
top: 0,
left: 0,
bottom: 0,
right: 0,
width: '100%',
height: 810
},
container: {
flex: 1,
backgroundColor: '#161620'
},
container2: {
flexDirection: 'column',
backgroundColor: '#1d1d2a',
width: 415,
height: 180,
marginTop: 50,
opacity: 0.9
},
container3: {
flexDirection: 'column',
backgroundColor: '#1d1d2a',
width: 415,
height: 200,
marginTop: 50,
opacity: 0.9
},
subtitle: {
color: 'grey',
fontSize: 18,
marginLeft: 15,
marginTop: 10,
},
dateText: {
color: 'white',
fontSize: 18,
},
button: {
borderBottomColor: 'white',
borderBottomWidth: 2,
marginLeft: 15,
marginRight: 15,
},
buttonText: {
color: 'white',
},
input: {
color: 'white',
borderColor: 'white',
padding: 8,
marginLeft: 20,
marginRight: 20,
marginTop: 10,
height: 50,
borderBottomColor: 'white',
borderBottomWidth: 2,
},
next: {
alignItems: 'center',
backgroundColor: '#0ad48a',
borderColor: '#0ad48a',
width: 420,
height: 50,
paddingTop: 10,
marginTop: 50,
},
});
export default Report3;