cordova-plugin-datepicker
cordova-plugin-datepicker copied to clipboard
ionic native Date Picker issue in ios app
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: https://github.com/VitaliiBlagodir/cordova-plugin-datepicker/issues/274#issuecomment-535544131