Different UI on iOS 14
Summary
I am currently preparing my app for the iOS 14. I have noticed that the date picker is not what it used to be.
Here is what it looks like on iOS 13.7:
Here is the iOS 14 version:

There is now an extra step, instead of spinning the wheel, I need to press it to trigger another calendar popup.
I use display: "spinner" prop.
Is there any way I can still use the wheel on iOS 14?
Environment info
react-native info output:
System:
OS: macOS 10.15.5
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Memory: 391.89 MB / 8.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 12.13.0 - /usr/local/bin/node
Yarn: 1.15.2 - /usr/local/bin/yarn
npm: 6.14.8 - /usr/local/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.9.3 - /Users/pavelermakov/.rvm/gems/ruby-2.6.5/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 13.5, DriverKit 19.0, macOS 10.15
Android SDK:
API Levels: 23, 24, 25, 26, 27, 28, 29
Build Tools: 23.0.1, 23.0.3, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.1, 26.0.3, 27.0.0, 27.0.1, 27.0.3, 28.0.0, 28.0.2, 28.0.3, 29.0.3
System Images: android-22 | Google APIs Intel x86 Atom, android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom_64, android-27 | Google Play Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 3.6 AI-192.7142.36.36.6392135
Xcode: 11.5/11E608c - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_171 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: 0.63.2 => 0.63.2
react-native-macos: Not Found
Library version: 3.0.2
I am having the same issue. The user flow is actually correct. That is how the new date picker from iOS 14 works, but the styling is a bit broken / not optimized for the new flow.
facing the same issue, it makes users have to click two times to choose the date. any help on this?
I found a quick fix for this issue. You can override your preferred Style of the UIDatePicker in your native iOS workspace. Just add the following lines of code in the function didFinishLaunchingWithOptions in your ios/APP_NAME/AppDelegate file.
if (@available(iOS 14, *)) {
UIDatePicker *picker = [UIDatePicker appearance];
picker.preferredDatePickerStyle = UIDatePickerStyleWheels;
}
After restarting your app the date picker should show the old wheel style. This fix can be removed after this package is updated with the new user flow and styling for the iOS 14 date picker.
@jChris85 That works, thank you!
@pavermakov I'm glad this is working for you. However, we should leave the issue open until this package is updated.
Regarding the documentation setting the prop display to spinner worked for me as well without the need of the native "fix".
@jChris85 you're a legend. Thaaanks
display={Platform.OS === 'ios' ? 'inline' : 'default'}
Setting display="spinner" still showing new default ios14 UI
I've deleted npm packages, cleared cache, reinstalled, cleared pod cache, and reinstalled pods. Same behavior.
@daybreaker I have to use the react-native-date-picker at the moment.
I noticed that in a brand new project the display options were working correctly, and so I tried deleting all caches with the following commands, and it worked.
watchman watch-del-all &&
rm -rf $TMPDIR/react-native-packager-cache-* &&
rm -rf $TMPDIR/metro-bundler-cache-* &&
rm -rf node_modules/
&& npm cache clean --force &&
npm install &&
npm start -- --reset-cache
Setting display="spinner" still showing new default ios14 UI
I've deleted npm packages, cleared cache, reinstalled, cleared pod cache, and reinstalled pods. Same behavior.
@daybreaker: Try to delete all available cache files and then restart your app.
Solution provided by @rodrigoarantes
I noticed that in a brand new project the display options were working correctly, and so I tried deleting all caches with the following commands, and it worked.
watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean --force && npm install && npm start -- --reset-cache
@jChris85 @rodrigoarantes Thanks a bunch - that seems to have done the trick! I wasnt deleting enough caches! :-P
if (@available(iOS 14, *)) { UIDatePicker *picker = [UIDatePicker appearance]; picker.preferredDatePickerStyle = UIDatePickerStyleWheels; }
Hi @jChris85, I want to display center Can you help me pls?

@phuocantd this was happening to me too, when trying the AppDelegate.m hack
Try removing that, and doing the cache deletion steps @rodrigoarantes mentioned:
watchman watch-del-all &&
rm -rf $TMPDIR/react-native-packager-cache-* &&
rm -rf $TMPDIR/metro-bundler-cache-* &&
rm -rf node_modules/
&& npm cache clean --force &&
npm install &&
npm start -- --reset-cache
Deleting all the caches and restarting brought back the old, centered spinner.
facing the same issue, it makes users have to click two times to choose the date. any help on this?
Facing same
@m4devgeek This is the new iOS 14 date picker behaviour. However, did you try the solutions provided in this thread?
To reset the date picker to use the spinner wheel follow these steps:
- Set the date picker prop display to
spinner - Delete all cache files
watchman watch-del-all &&
rm -rf $TMPDIR/react-native-packager-cache-* &&
rm -rf $TMPDIR/metro-bundler-cache-* &&
rm -rf node_modules/
&& npm cache clean --force &&
npm install &&
npm start -- --reset-cache
- restart your app
This works locally but when it goes though my build server, bitrise, I get the following error:
ios/MY_APP/AppDelegate.m:54:39: use of undeclared identifier 'UIDatePickerStyleWheels'
picker.preferredDatePickerStyle = UIDatePickerStyleWheels;
Any ideas?
@donaldparker you need to use xcode 12, that should make the error go away
Yes that fixed the issue, thank you.