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.

Spinner not working on Android in expo standalone app

See original GitHub issue

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

Issue Analytics

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

github_iconTop GitHub Comments

6reactions
karanmartiancommented, Jul 24, 2020

@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

1reaction
SDP190commented, Aug 2, 2020

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’.

Read more comments on GitHub >

github_iconTop Results From Across the Web

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...
Read more >
React Native Camera shows blank screen with loading ...
I use expo permissions and get permission for both camera and audio earlier in the app. This issue happens on both android and...
Read more >
TaskManager
TaskManager works out of the box in the Expo Go app on Android, but on iOS you'll need to test using a development...
Read more >
Android Spinner Cannot Update In React Native
Spinner not working on Android in expo standalone app It is a very serious problem because I am relying on this to capture...
Read more >
react-native-community/datetimepicker
React Native date & time picker component for iOS, Android and Windows. ... (not yarn or npm ) to install this module -...
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