-
Notifications
You must be signed in to change notification settings - Fork 399
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
Styling bug with inline display in datetime mode #672
Comments
Same here |
I know I sound like a broken record, but please, see the README: And the ISSUE_TEMPLATE:
Did you already swap the components and verified the issue is not happening? Also, there's not minimal reproducible demo. I don't mark issues as invalid because it's fun, but because I don't have enough free time to investigate issues that don't fullfil the requirements. |
Hey @mmazzarolo ! After some investigation, I've tracked down the issue to this react-native-datetimepicker/datetimepicker#693 <-- the linked PR provides the means to fix it. I'm not exactly sure what broke it, but it seems in the more recent versions it is necessary to specify the height of the native inline datetime picker for the time to be displayed correctly. For example, this is the unwanted behaviour without any modifications And If I do this:
in I've found the 370 height to be a sweet spot for the datetime picker to correctly display the time component of the picker. Also, this only seems to be an issue when the underlying datetime picker is shown within a react-native Do you feel this is a "good-enough" solution for this issue? If yes, I'd be happy to submit a PR proposing this change. |
Hey @fobos531 ! Thanks so much for the investigation, great detective work!
For a moment I even thought about making that number a prop, but I think this is something we should take care ourselves in this lib. Again, thanks so much for your investigation 🙇 |
Fixed by #697 |
For those (like me) still encountering this issue, adding this prop helped me: pickerComponentStyleIOS={{ height: 420}} |
Environment
MacBook, Running MacOS 12.5.1
Platforms
iOS
Versions
Description
There is a bug with the styling for time in
inline
display mode.This is a related issue, however downgrading didn't fix the issue for me.
Reproducible Demo
The text was updated successfully, but these errors were encountered: