datetimepicker icon indicating copy to clipboard operation
datetimepicker copied to clipboard

display="spinner" on Android still shows calendar

Open kelvinndmo opened this issue 4 years ago • 10 comments

Bug report

I am currently running expo SDK 44 and @react-native-community/[email protected], 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

kelvinndmo avatar Jan 04 '22 10:01 kelvinndmo

same here

jle35 avatar Jan 07 '22 08:01 jle35

I think this is only intended for iOS

Delvio avatar Jan 11 '22 23:01 Delvio

@Delvio i don't this so, It has been working utpo like December

kelvinndmo avatar Jan 12 '22 07:01 kelvinndmo

Same Problem, with version 5.1.0 Is thre any action ?

hurtrelj avatar Jan 19 '22 10:01 hurtrelj

@kelvinndmo Why did you close this issue ? did you managed to get working?

hurtrelj avatar Jan 19 '22 10:01 hurtrelj

Yes @hurtrelj use expo dev client

kelvinndmo avatar Jan 19 '22 12:01 kelvinndmo

@kelvinndmo do you talk about eas build ?

hurtrelj avatar Jan 19 '22 13:01 hurtrelj

Same problem here, is this not fixed yet ?

OTHMANE-AKHSAS avatar Feb 21 '22 21:02 OTHMANE-AKHSAS

Same here 😞

otaviogaiao avatar Feb 22 '22 10:02 otaviogaiao

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

search654321 avatar Apr 13 '22 10:04 search654321