aboutsummaryrefslogtreecommitdiff
path: root/mobile/screens/Form1.js
diff options
context:
space:
mode:
authorAndrewMihai <41450954+AndrewMihai@users.noreply.github.com>2019-03-05 00:15:26 +0000
committerGitHub <noreply@github.com>2019-03-05 00:15:26 +0000
commit8a5bf1ba34a2ef52fd8ebc10e3b7b0a2e7360e55 (patch)
tree427bd932cac77f1005bbcec80f0e1058c7ef3b3d /mobile/screens/Form1.js
parent9438381045c142d38bd1aa28c307723fdb016e4a (diff)
parent598c090d54d96b9d2ea3d5940358b2e8cf157357 (diff)
Merge pull request #21 from csc301-winter-2019/feat/15
Feat/15
Diffstat (limited to 'mobile/screens/Form1.js')
-rw-r--r--mobile/screens/Form1.js76
1 files changed, 76 insertions, 0 deletions
diff --git a/mobile/screens/Form1.js b/mobile/screens/Form1.js
new file mode 100644
index 0000000..578317f
--- /dev/null
+++ b/mobile/screens/Form1.js
@@ -0,0 +1,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>
+
+
+
+ );
+ }
+}
+
+
+
+