Spinner not working on Android in expo standalone app
See original GitHub issueHi,
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:
- Created 3 years ago
- Reactions:3
- Comments:16 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub 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’.