blob: 578317f8eab00ff8c44cef5b00972f63231a9c12 (
plain)
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
|
import React, { Component } from 'react';
import {Text, Alert, AppRegistry, Button, StyleSheet, View, TextInput } from 'react-native';
export default class Form1 extends Component {
_onPressButton1() {
Alert.alert('Thanks for letting us know!')
}
_onPressButton2() {
Alert.alert('Continue:')
}
constructor(props) {
super(props);
this.state = {age: '',
name: '',
appearance: '',
injured: false,
why: ''};
}
render() {
return (
<View style={{padding: 40}}>
<Text>Age:</Text>
<TextInput
style={{height: 40}}
placeholder="(Estimate if unknown)"
onChangeText={(age) => this.setState({age})}
/>
<Text>Name:</Text>
<TextInput
style={{height: 40}}
placeholder="Type the name here"
onChangeText={(name) => this.setState({name})}
/>
<Text>Appearance:</Text>
<TextInput
style={{height: 40}}
placeholder="What are they Wearing"
onChangeText={(appearance) => this.setState({appearance})}
/>
<Text>Injured?</Text>
{/* insert radio button???*/}
<Text>Please let us know why do you think they need help</Text>
<TextInput
style={{height: 40}}
placeholder="Reason"
onChangeText={(why) => this.setState({why})}
/>
{/*additional questions*/}
<View style={{padding: 40}}>
<Button
onPress={this._onPressButton1}
title="I do not have time to speak with the individual, Submit!"
/>
</View>
<Button
onPress={this._onPressButton2}
title="I have additional info!"
/>
</View>
);
}
}
|