From 44865bc8e6cbbb535d3ed77e0a8f8bf96f3fadc9 Mon Sep 17 00:00:00 2001 From: xuhaoy Date: Sat, 23 Feb 2019 05:10:27 -0500 Subject: adding form for questions that does not require speaking with the homeless individual --- mobile/screens/Form1.js | 67 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 mobile/screens/Form1.js (limited to 'mobile') diff --git a/mobile/screens/Form1.js b/mobile/screens/Form1.js new file mode 100644 index 0000000..1a0fb04 --- /dev/null +++ b/mobile/screens/Form1.js @@ -0,0 +1,67 @@ +import React, { Component } from 'react'; +import {Text, Alert, AppRegistry, Button, StyleSheet, View, TextInput } from 'react-native'; + +export default class ButtonBasics extends Component { + _onPressButton() { + Alert.alert('Thanks for letting us know!') + } + constructor(props) { + super(props); + this.state = {age: '', + name: '', + appearance: '', + injured: false, + why: ''}; + } + + render() { + return ( + + + + Age: + this.setState({age})} + /> + + + Name: + this.setState({name})} + /> + Appearance: + this.setState({appearance})} + /> + Injured? + {/* insert radio button???*/} + Please let us know why do you think they need help + this.setState({why})} + /> + + {/*additional questions*/} + +