question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

display="spinner" on Android still shows calendar

See original GitHub issue

Bug 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:10

github_iconTop GitHub Comments

2reactions
search654321commented, Apr 13, 2022

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

2reactions
jle35commented, Jan 7, 2022

same here

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found