📅
Native Date Picker
- Date selected
- Date Picker closed
- Selected Date
- Show Date Picker
- Title
- Description [iOS]
- Type - DATE, DATE_AND_TIME, or TIME
- Style [iOS] - DARK or LIGHT
1
const picker = new NativelyDatePicker()
2
const datepicker_callback = function (resp) {
3
const milliseconds = Number(resp.date);
4
console.log(new Date(milliseconds));
5
};
6
const title = "Select Date";
7
const description = "";
8
const type = "DATE_AND_TIME" // "DATE"/"TIME"/"DATE_AND_TIME"
9
const style = "LIGHT" // "LIGHT"/"DARK"
10
picker.showDatePicker(title, description, type, style, datepicker_callback);
Last modified 1yr ago