VitaliiBlagodir / cordova-plugin-datepicker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ionic native Date Picker issue in ios app

rajlee5129 opened this issue · comments

I used following code in my ionic 4 app. in android i dont have any issue, but in ios it is displaying time picker but it is not showing value like hours ,min , AM and PM(it in white color). if i scroll in white area of hours , mins AM,PM and then if click on done, i am getting changed value in this.datePicker.show(options).then() callback. but it not displaying.

import { DatePicker } from '@ionic-native/date-picker/ngx';

constructor(private datePicker: DatePicker) { }
this.datePicker.show({
date: new Date(),
mode: 'time',
androidTheme: this.datePicker.ANDROID_THEMES.THEME_HOLO_LIGHT
}).then(
time => console.log('Got time: ', time),
err => console.log('Error occurred while getting time: ', err)
);

This is answered here: #274 (comment)