Browse Source

more improvements to datepicker - ios

master
analuizaff 4 years ago
parent
commit
e14e4fb8aa
  1. 2
      src/app/screens/PluviometerSharingDataScreen.js

2
src/app/screens/PluviometerSharingDataScreen.js

@ -37,13 +37,13 @@ function PluviometerSharingDataScreen(props) {
//---------------ios------------------------ //---------------ios------------------------
const onChange = (e, selectedDate) => { const onChange = (e, selectedDate) => {
setDate(moment(selectedDate)); setDate(moment(selectedDate));
dateTime = moment(selectedDate).format("DD/MM/YYYY").toString();
} }
const onCancelPress = () => { const onCancelPress = () => {
setDate(moment(defaultDate)); setDate(moment(defaultDate));
setShow(false); setShow(false);
} }
const onDonePress = () => { const onDonePress = () => {
setDate(moment(date));
setShow(false); setShow(false);
} }
//------------------------------------------- //-------------------------------------------

Loading…
Cancel
Save