-
Notifications
You must be signed in to change notification settings - Fork 724
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
iOS 14 #425
Comments
Any update on this? |
The question is: Is this lib still maintained ? 😕 |
@pramodsharma403 Have you get any solution for this issue? |
Same issue here. What I experienced now is that my app displays the datepicker correctly in the "old" way when the app is built with XCode 11. My current app live in the store (archived with XCode 11) running on a real device with iOS 14 beta 4 the Datepicker looks OK. |
one solution for this may be to override the preferedStyle of any UIDatePicker in the iOS native Workspace:
But there is one catch 👎 If you are fine with a left aligned Wheel though just put the code from above in your AppDelegate -> didFinishLaunchingWithOptions function |
were did you update the ios datepicker code? In workspace? @undeaDD |
Anywhere before the datepicker is loaded is fine ;) |
Cool it worked |
The solution from @undeaDD worked for me as well, thank you so much for sharing this. |
Hello, can anyone explain where to do the workaround for alignment issue? Knowing that if you do it inside the component rendering it only works when you save the file and after you open the picker again it goes left.. Any advise? Thanks |
The solution @undeaDD provided worked just fine, but, I still kinda want to be able to use iOS 14 date picker, anyone has any approach to do this? |
We desperately need a new repository that's maintained for date picking. |
can confirm @undeaDD workaround works well enough Real solution i think is to just go back to reactnative(community) date pickers which look to have come a long way since this libraries inception |
These two things worked for me.
Check the full code here- #425 (comment)
|
Cool it worked |
@wo-xiaoxiao on real device ? |
Any solution for expo..? |
Hi, @dhavalpanchani |
@uvrik : Sure, here it's.
|
Found a work around for expo apps without eject:
npm install git+https://github.com/codynguyen/react-native-datepicker.git#ios-datepicker-component --save
npm install --save @react-native-community/datetimepicker
import RNDatePicker from '@react-native-community/datetimepicker';
// ...
<DatePicker
iOSDatePickerComponent={(props) => (<RNDatePicker {...props} display={Platform.OS === 'ios' ? 'spinner' : 'default' }/>)}
/> enjoy :) |
@vhuerta this solution is not working for expo. |
@aliiqbal436 have it working on my own expo app, these are my versions "react-native-datepicker": "git+https://github.com/codynguyen/react-native-datepicker.git#ios-datepicker-component",
"@react-native-community/datetimepicker": "^3.0.9", I think expo installs a different |
|
Works like charm.. Thanks @vhuerta 👍 |
These two things worked for me only in Development mode . Add below code in didFinishLaunching function in appdelegate.m : In DatePicker customStyles : but after building it in release mode in ios, I'm getting like this any fix ? |
Looks like a dark mode issue. Do you have the same view in light mode? |
yes It was issue with dark mode - after changing uiappearance mode in xcode to light - it got fixed |
this worked for my xcode 11.1 |
Mind blowing. Easiest solution !!!!!! |
Workaround by @undeaDD confirmed still working. 👍🏻 |
This works like a charm!! |
Issue
Looks like iOS 14 introduced new design for Calendar
Expected Behaviour
Looks like this component needs to be updated to handle these changes for iOS 14
Environment
react-native -v
: 0.62.2node -v
: v10.18.1npm -v
: 6.13.4yarn --version
: 1.22.4target platform
: iOS (14)operating system
: macOSThe text was updated successfully, but these errors were encountered: