Skip to content

Commit

Permalink
Fix onCloseModal for android
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Hopkins authored May 5, 2017
1 parent 95c7d64 commit 555903d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ class DatePicker extends Component {
date: new Date(year, month, day)
});
this.datePicked();
} else {
this.onPressCancel();
}
}

Expand All @@ -180,6 +182,8 @@ class DatePicker extends Component {
date: Moment().hour(hour).minute(minute).toDate()
});
this.datePicked();
} else {
this.onPressCancel();
}
}

Expand All @@ -195,6 +199,8 @@ class DatePicker extends Component {
is24Hour: is24Hour,
mode: androidMode
}).then(this.onDatetimeTimePicked.bind(this, year, month, day));
} else {
this.onPressCancel();
}
}

Expand All @@ -204,6 +210,8 @@ class DatePicker extends Component {
date: new Date(year, month, day, hour, minute)
});
this.datePicked();
} else {
this.onPressCancel();
}
}

Expand Down

0 comments on commit 555903d

Please sign in to comment.