React-native-modal-datetime-picker: DatePicker Alignment in iOS 14

Created on 23 Oct 2020  路  3Comments  路  Source: mmazzarolo/react-native-modal-datetime-picker

Hi Team,

I am using the react-native-modal-datetime-picker": "^6.0.0 for react-native : 0.59.0,react:16.6.3,Xcode:12.0.1,iOS :14.

The DatePicker show current date with no spinner for this i am added native code in AppDelegate didFinishLaunchingWithOptions
if (@available(iOS 14, *)) {
UIDatePicker *picker = [UIDatePicker appearance];
picker.preferredDatePickerStyle = UIDatePickerStyleWheels;
}

After this native code DatePicker show all dates and spinner at left side in iPhone and iPad.
Can you please resolve this datepicker at center in both iPhone and iPad.

DatePicker_iPhone
DatePicker_iPad
DatePicker

question

Most helpful comment

Hi mmazzarolo,
I am using the latest version 2.6.2, I am also facing the same issue. I tried to change the position but it's not working.

All 3 comments

Hi @gopikasireddy202 , sorry but we don't provide support for older versions of the picker. Your best bet is updating to the latest and check if the issue is fixed there

Hi mmazzarolo,
I am using the latest version 2.6.2, I am also facing the same issue. I tried to change the position but it's not working.

Hi mmazzarolo,
I am using the latest version 2.6.2, I am also facing the same issue. I tried to change the position but it's not working.

@Total-Drive , I think you can try to upgrade @react-native-community/datetimepicker to the latest version.
image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mustafaskyer picture mustafaskyer  路  3Comments

DominicHan picture DominicHan  路  4Comments

yash-atreya picture yash-atreya  路  3Comments

akug17 picture akug17  路  3Comments

ocarreterom picture ocarreterom  路  4Comments