datetimepicker: Spinner not working on Android in expo standalone app

Hi,

I am using this library with Expo and it works when developing with Expo but when I build the standalone app, the datetimepicker keeps defaulting to the calendar display on any device. This is a serious bug because the calendar display is quite pathetic and confusing for a user who doesn’t know that the year can be clicked. Its rather way straightforward to use the spinner.

I sincerely request the community to please fix this problem asap. It is a very serious problem, because I am relying on this to capture the date of birth of my users.

Bug report

Summary

Environment info

react-native info output:

# paste it here

Library version: x.x.x

Steps to reproduce

Describe what you expected to happen:

Reproducible sample code

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 3
  • Comments: 16 (4 by maintainers)

Most upvoted comments

@luancurti I have spent a lot of time cracking my head to find an alternative since I know this would take time to fix here. So I switched to DatePickerAndroid and it finally works on the standalone app as expected.

I am using Expo SDK 38 and the reason I cannot provide you with a reproducible piece of code is because you will not be able to reproduce it if its not built into a standalone app via the Expo build service.

The issue again I would like to clarify is that your component works perfectly fine with the standard display = “spinner” prop set when testing it in development in Expo. However once I build the standalone app then no matter which device it is, always the calendar display will show and it will never show the spinner display inspite of setting display prop to “spinner”.

So all I am saying is that if you can build a standalone app on Expo SdK 38 using this component and deploy it on a device you can straight verify why this issue is so critical. And worst come worst case if spinner cannot be done at least please change the idiotic default calendar display which is just not suitable for selecting date of birth. Its not clear to user that he can click on year to change year.

Best Regards, In Earnest need of this fix, Karan

Just create a react native expo app, include functionality to open a react-native-datepicker in it, specifying the picker mode should be ‘spinner’. Then use expo service to build an android standalone app! Install it in android and invoke the date picker it wont be ‘spinner’.