GabrielTrettel
3 years ago
12 changed files with 176 additions and 195 deletions
-
28src/app/components/ImageInput.js
-
44src/app/components/PickEventDateLocation.js
-
11src/app/components/TextInput.js
-
6src/app/components/forms/FormField.js
-
25src/app/components/forms/FormImagePicker.js
-
8src/app/components/forms/SubmitButton.js
-
24src/app/screens/MapFeedScreen.js
-
28src/app/screens/PluviometerSharingDataScreen.js
-
56src/app/screens/RainSharingDataScreen.js
-
40src/app/screens/RiverFloodSharingDataScreen.js
-
52src/app/screens/SharingFloodZonesScreen.js
-
1src/package.json
@ -0,0 +1,44 @@ |
|||||
|
import React from "react"; |
||||
|
import { View } from "react-native"; |
||||
|
|
||||
|
import colors from "../config/colors"; |
||||
|
import { TouchableOpacity } from "react-native-gesture-handler"; |
||||
|
import FormDatePicker from "../components/forms/FormDatePicker"; |
||||
|
import FormLocationPicker from "../components/forms/FormLocationPicker"; |
||||
|
|
||||
|
export default function PickEventDateLocation({ |
||||
|
setDate = () => {}, |
||||
|
setTime = () => {}, |
||||
|
navigation = () => {}, |
||||
|
location = true, |
||||
|
}) { |
||||
|
return ( |
||||
|
<View |
||||
|
style={{ |
||||
|
flex: 1, |
||||
|
paddingHorizontal: 16, |
||||
|
flexDirection: "column", |
||||
|
justifyContent: "space-between", |
||||
|
alignContent: "flex-start", |
||||
|
}} |
||||
|
> |
||||
|
{/*Data da coleta:*/} |
||||
|
<View style={{ flex: 0.1 }}> |
||||
|
<FormDatePicker |
||||
|
textStyle={{ |
||||
|
borderColor: colors.gray, |
||||
|
borderWidth: 3, |
||||
|
}} |
||||
|
defaultDate={new Date()} |
||||
|
onDateChange={(value) => setDate(value)} |
||||
|
onTimeChange={(value) => setTime(value)} |
||||
|
/> |
||||
|
</View> |
||||
|
{/*Local do evento:*/} |
||||
|
{location && |
||||
|
<TouchableOpacity onPress={() => navigation.navigate("FormMap")}> |
||||
|
<FormLocationPicker /> |
||||
|
</TouchableOpacity>} |
||||
|
</View> |
||||
|
); |
||||
|
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue