Skip to content
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 datetime picker display="spinner" #47

Conversation

luancurti
Copy link
Member

@luancurti luancurti commented Oct 21, 2019

Summary

I got it from https://gist.github.com/jeffdgr8/6bc5f990bf0c13a7334ce385d482af9f and
did some adjustments in order to work with DatePicker. Workaround for this bug: https://code.google.com/p/android/issues/detail?id=222208. In Android 7.0 Nougat, spinner mode for the DatePicker in DatePickerDialog is incorrectly displayed as calendar.

Test Plan

Run Example with Android Emulator with Android Nougat (7.0), and modify example setting mode="spinner"

What are the steps to reproduce (after prerequisites)?

Run Example in current master branch with Android Emulator with Android Nougat (7.0), and modify example setting mode="spinner" the emulator shows calendar

Checklist

  • I have tested this on a device and a simulator

@FDiskas
Copy link

FDiskas commented Dec 13, 2019

This should be merged ASAP :)

@vonovak vonovak merged commit 79e8da9 into react-native-datetimepicker:master Jan 31, 2020
@vonovak
Copy link
Member

vonovak commented Jan 31, 2020

thanks @luancurti! Would you be interested in helping to maintain the module?

@luancurti
Copy link
Member Author

@vonovak yes. Could you add me as a maintainer?

@luancurti luancurti deleted the fix/picker-android-nougat branch February 2, 2020 13:54
@FDiskas
Copy link

FDiskas commented Apr 17, 2020

Sorry this is mistype? display="spinner" or mode="spinner"

@vonovak vonovak changed the title Fix Android Nougat datetime picker mode="spinner" Fix Android Nougat datetime picker display="spinner" Apr 17, 2020
@vonovak
Copy link
Member

vonovak commented Apr 17, 2020

@FDiskas display="spinner" is correct :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants