-
-
Notifications
You must be signed in to change notification settings - Fork 413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix android nougat display spinner #118
Conversation
android/src/main/java/com/reactcommunity/rndatetimepicker/RNDismissableDatePickerDialog.java
Outdated
Show resolved
Hide resolved
Let me please take a look at this before we merge, thanks! |
Of Course! |
That's why I didn't merge it yet |
Any idea when this will be merged in? |
I thought this was going to make it into SDK 37 ;( |
@luancurti are you planning to look into this? Thanks :) |
Yes, I'll make the suggested changes before the weekend |
385c9eb
to
f3947e9
Compare
This does not fix the problem for me once deployed as a standalone app (expo). I still get the 'default' clock when I select 'spinner'. This happens with ALL our Android test devices. |
@TreeMan360 as you pointed out, this fix is not available in expo 37 (managed workflow), so I'm unsure how you're reproducing it. Please open a new issue and provide a runnable reproduction (follow the issue template), or alternatively, consider contributing a PR with a fix for your issue, thank you. |
I just referenced the new package and ignored the expo warning saying it may not be compatible. I assume from your response that this is not plausible (I would like to understand why?) so I guess I will either be forced to not use this package or wait until 38 (far from ideal). |
Expo sdk ships native code from one of the previous versions of this package (use expo install to find which one), so even if you manually install the latest version of this package you will not actually run the latest version. But note that the bug which was fixed on this PR only exists in Android version 7, and it's not a bug that would prevent user from picking a date. |
Ok thanks for the explanation that makes sense. My problem is simply that once I make a standalone app the “spinner” display is not used. This is across multiple android versions, I always get the clock. It’s fine in development. So is this a separate issue? |
This sounds like a separate issue. But if it's fine in development but wrong in release build, that's pretty weird. You can try opening a new issue but please note we require runnable reproduction to consider the issue as valid - and that might not be easy in this case. |
Summary
Display spinner should respect
display prop
Closes #117
Test Plan
Run this
demo
https://github.com/otaviogaiao/teste-datepicker anddate picker
with modespinner
and date picker with spinner should be displayedWhat's required for testing (prerequisites)?
What are the steps to reproduce (after prerequisites)?
Compatibility
Checklist
README.md
CHANGELOG.md
example/App.js
)