display="spinner" on Android still shows calendar
See original GitHub issueBug report
I am currently running expo SDK 44 and @react-native-community/datetimepicker@4.0.0, I have set the display=“spinner” and yet I get a calendar view instead of a spinner view. Attached below is my code spinner
<DateTimePicker
testID="dateTimePicker"
value={new Date(initialDate) || new Date()}
mode={"date"}
is24Hour={true}
display="spinner"
onChange={(event: any, selectedDate: any) => {
const currentDate = selectedDate;
onChange(currentDate);
}}
onTouchCancel={() => {
setShowDateDialog(false);
}}
textColor={Colors.black}
/>
npx react-native info
output:
System:
OS: macOS 12.0.1
CPU: (8) x64 Apple M1
Memory: 32.03 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.17.0 - /usr/local/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 7.14.0 - /usr/local/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
Languages:
Java: 16.0.1 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.1 => 17.0.1
react-native: 0.64.3 => 0.64.3
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
datetimepicker version: 4.0.0
Android Version: 11
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:10
Top Results From Across the Web
Android Datepicker - Always show date month year spinner ...
While using android datepicker, I want to always show the old date month year spinner instead of new calendar view ? How can...
Read more >Spinner - Android Developers
A view that displays one child at a time and lets the user pick among them. The items in the Spinner come from...
Read more >Spinner Picker Dialogs on Android 7.0: We Fixed Them!
A couple months later though, we learned that the DatePickerDialog is still showing up for some users in the default calendar design.
Read more >datepicker dialog can't swich to spinner on Android 7.0 device ...
it does not work. I just want the DatePickerDialog to show spinner view on Android N, but it still show calander view when...
Read more >User Interface - App Inventor
Button; CheckBox; DatePicker; Image; Label; ListPicker; ListView; Notifier; PasswordTextBox; Screen; Slider; Spinner; Switch; TextBox; TimePicker; WebViewer ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can this issue be opened again? I just tried last version of the package and the calendar shows up always, it’s like “spinner” is doing nothing
same here