Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DatePicker Alignment in iOS 14 #488

Closed
gopikasireddy202 opened this issue Oct 23, 2020 · 4 comments
Closed

DatePicker Alignment in iOS 14 #488

gopikasireddy202 opened this issue Oct 23, 2020 · 4 comments
Labels

Comments

@gopikasireddy202
Copy link

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

@mmazzarolo
Copy link
Owner

mmazzarolo commented Oct 23, 2020

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

@tomwotton
Copy link

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.

@vb-ben
Copy link

vb-ben commented Jan 29, 2021

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

@waqaramjad
Copy link

I am using latest version still have same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants