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------------------------
const onChange = (e, selectedDate) => {
setDate(moment(selectedDate));
dateTime = moment(selectedDate).format("DD/MM/YYYY").toString();
}
const onCancelPress = () => {
setDate(moment(defaultDate));
setShow(false);
}
const onDonePress = () => {
setDate(moment(date));
setShow(false);
}
//-------------------------------------------

Loading…
Cancel
Save