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.

DatePickerAndroid "spinner" mode in Tablet opens both "spinner" and "calendar"

See original GitHub issue

Environment

React Native Environment Info: System: OS: Linux 4.13 Ubuntu 16.04.5 LTS (Xenial Xerus) CPU: x64 Intel® Core™ i3-8100 CPU @ 3.60GHz Memory: 205.11 MB / 7.71 GB Shell: 4.3.48 - /bin/bash Binaries: Node: 8.12.0 - /usr/bin/node Yarn: 1.10.1 - /usr/bin/yarn npm: 6.4.1 - /usr/bin/npm SDKs: Android SDK: Build Tools: 23.0.1, 25.0.0, 25.0.1, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.1 API Levels: 23, 25, 26, 27, 28 npmPackages: react: 16.5.0 => 16.5.0 react-native: 0.57.1 => 0.57.1 npmGlobalPackages: create-react-native-app: 1.0.0 react-native-cli: 2.0.1 react-native-create-library: 3.1.2 react-native-smtp-mailer: 1.1.6

Description

When i open DatePickerAndroid with mode “spinner” in API 23 phone (android 6.0) it opens correctly. But if i change to a tablet (Nexus 9 2048x1563 xhdpi) with API 23 (android 6.0 x86), then both spinner and calendar open as you can see in screenshot: (Also tested on Android 8 and android 7.1 tablet and bug exists, tested with RN v0.56 and RN v0.57) tablet_both_spinner_and_calendar_open

Code used:

DatePickerAndroid.open({
      date: new Date(2020, 4, 25),
      mode: "spinner"
    });

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
hyochancommented, Oct 3, 2018

@angelos3lex I think this is expected in pure android.

0reactions
stale[bot]commented, Jan 20, 2019

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - DatePickerAndroid "spinner" mode opens both ...
When i open DatePickerAndroid with mode "spinner" in API 23 phone ... then both spinner and calendar open as you can see in...
Read more >
DatePicker in Android | Calendar/Spinner Mode - YouTube
In this video , I am explaining how to use datepicker in android. There are two modes available : Calendar mode and Spinner...
Read more >
Android DatePicker with Examples - Tutlane
In anroid, the DatePicker supports a two types of modes, those are Calendar and Spinner to show the date details in our application....
Read more >
Date pickers – Material Design 3
Date pickers can display past, present, or future dates relevant to a task; Clearly indicate important dates, such as current and selected days ......
Read more >
Android DatePicker Example - Javatpoint
Like DatePicker, android also provides TimePicker to select time. The android.widget.DatePicker is the subclass of FrameLayout class.
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