|
|
@ -19,9 +19,7 @@ import Screen from "../components/Screen"; |
|
|
|
import useLocation from "../hooks/useLocation"; |
|
|
|
import FormImagePicker from "../components/forms/FormImagePicker"; |
|
|
|
import { insertPluviometerData } from "../database/databaseLoader"; |
|
|
|
import { FontAwesome5 } from "@expo/vector-icons"; |
|
|
|
import { showMessage } from "react-native-flash-message"; |
|
|
|
import colors from "../config/colors"; |
|
|
|
import { scaleDimsFromWidth } from "../config/dimensions"; |
|
|
|
import FormDatePicker from "../components/forms/FormDatePicker"; |
|
|
|
|
|
|
@ -83,8 +81,8 @@ function PluviometerSharingDataScreen(props) { |
|
|
|
/> |
|
|
|
</View> |
|
|
|
|
|
|
|
<View style={{ marginTop: 10 }}> |
|
|
|
<Text style={styles.labelStyle}>Data da coleta:</Text> |
|
|
|
<View style={{ marginTop: 10, flex: 1 }}> |
|
|
|
<Text style={styles.labelStyle}>Data da coleta:</Text> |
|
|
|
<FormDatePicker |
|
|
|
textStyle={{ |
|
|
|
padding: 15, |
|
|
@ -95,7 +93,7 @@ function PluviometerSharingDataScreen(props) { |
|
|
|
onDateChange={(value) => setDateTime(value)} |
|
|
|
/> |
|
|
|
</View> |
|
|
|
|
|
|
|
|
|
|
|
<FormImagePicker |
|
|
|
backgroundColor="#1976D2" |
|
|
|
name="images" |
|
|
@ -122,22 +120,6 @@ const styles = StyleSheet.create({ |
|
|
|
justifyContent: "center", |
|
|
|
alignItems: "center", |
|
|
|
}, |
|
|
|
datePickerView: { |
|
|
|
flexDirection: "row", |
|
|
|
justifyContent: "space-between", |
|
|
|
paddingVertical: 15, |
|
|
|
flex: 1, |
|
|
|
}, |
|
|
|
datepickerStyle: { |
|
|
|
borderRadius: 25, |
|
|
|
backgroundColor: "#f8f4f4", |
|
|
|
flex: 0.9, |
|
|
|
flexDirection: "row" |
|
|
|
}, |
|
|
|
dateIcon: { |
|
|
|
marginTop: 25, |
|
|
|
marginLeft: 15, |
|
|
|
}, |
|
|
|
labelStyle: { |
|
|
|
fontSize: 16, |
|
|
|
fontWeight: "bold", |
|
|
|