|
|
@ -19,6 +19,8 @@ import { showMessage } from "react-native-flash-message"; |
|
|
|
import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view"; |
|
|
|
import assets from "../config/assets"; |
|
|
|
import { scaleDimsFromWidth, dimensions } from "../config/dimensions"; |
|
|
|
import moment from "moment"; |
|
|
|
import FormDatePicker from "../components/forms/FormDatePicker"; |
|
|
|
|
|
|
|
const validationSchema = Yup.object().shape({ |
|
|
|
images: Yup.array(), |
|
|
@ -32,6 +34,9 @@ function RiverFloodSharingDataScreen(props) { |
|
|
|
const location = useLocation(); |
|
|
|
const [error, setError] = useState(false); |
|
|
|
|
|
|
|
const [dateTime, setDateTime] = useState(moment()); |
|
|
|
const [time, setTime] = useState(moment()); |
|
|
|
|
|
|
|
return ( |
|
|
|
<Screen style={styles.container}> |
|
|
|
<Text |
|
|
@ -133,6 +138,21 @@ function RiverFloodSharingDataScreen(props) { |
|
|
|
)} |
|
|
|
|
|
|
|
<FormImagePicker backgroundColor={colors.primary} name="images" /> |
|
|
|
|
|
|
|
<View style={{ marginTop: 10, flex: 1 }}> |
|
|
|
{/*Data da coleta:*/} |
|
|
|
<FormDatePicker |
|
|
|
textStyle={{ |
|
|
|
padding: 15, |
|
|
|
borderColor: colors.gray, |
|
|
|
borderWidth: 3, |
|
|
|
}} |
|
|
|
defaultDate={new Date()} |
|
|
|
onDateChange={(value) => setDateTime(value)} |
|
|
|
onTimeChange={(value) => setTime(value)} |
|
|
|
/> |
|
|
|
</View> |
|
|
|
|
|
|
|
<FormField |
|
|
|
maxLength={255} |
|
|
|
multiline |
|
|
|