Open maciejors opened 2 months ago
Hey! Thanks for opening the issue. Can you provide more information about the issue? Please fill the issue template when opening the issue without deleting any section. We need all the information we can, to be able to help. Make sure to at least provide - Current behaviour, Expected behaviour, A way to reproduce the issue with minimal code (link to snack.expo.dev) or a repo on GitHub, and the information about your environment (such as the platform of the device, versions of all the packages etc.).
Hey! Thanks for opening the issue. Can you provide a minimal repro which demonstrates the issue? Posting a snippet of your code in the issue is useful, but it's not usually straightforward to run. A repro will help us debug the issue faster. Please try to keep the repro as small as possible. The easiest way to provide a repro is on snack.expo.dev. If it's not possible to repro it on snack.expo.dev, then you can also provide the repro in a GitHub repository.
Hi, there was actually a link to repo there, but maybe it was easy to miss, I updated the description so now maybe it is clearer how to reproduce the issue. I also added a note on why I did not put it on snack.expo.dev - in short, I was not able to reproduce it there. I had to simplify the app setup and for some reason everything worked fine there, which only adds to my confusion. I am starting to wonder whether maybe it has something to do with my phone more than with the package.
I just installed this library. I've the same issue with the single DatePicker. On web it renders fine but on mobile it overflows the other elements.
I fixed it for mobile with <View className="flex-1 max-h-14">
in the wrapper View. I dont like that I set the max height here but without the datepicker height use all space after setting flex-1 (the flex: 1 property fix the original problem)
Hello 👋, this issue has been open for more than a month without a repro or any activity. If the issue is still present in the latest version, please provide a repro or leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution or workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix it.
I just verified that the issue is still present in the latest version of the package. The repro steps remain the same, and the workaround is to wrap the date picker with <View style={{ flex: 1 }}>
.
Hello 👋, this issue has been open for more than a month without a repro or any activity. If the issue is still present in the latest version, please provide a repro or leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution or workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix it.
Not stale, issue is still present.
Current behaviour
The
DatePickerInput
renders in a wrong place. See the code and images below. The way I see it, text inputs render exactly where they would render if there was noDatePickerInput
, and theDatePickerInput
renders too high (see the first image). Also note the following:style={{ flex: 1 }}
to the View which wraps theDatePickerInput
and all text inputs, there is no overlap, however the date picker input tries to take up the whole remaining space (see the second image)Expected behaviour
I would imagine that the date picker input should render between the first and the second text inputs with no overlapping, and also that it would not stretch when I apply flex: 1 to the parent view.
How to reproduce?
app/index.tsx
with the following:export default function Index() { const [date, setDate] = useState<Date | undefined>();
return (
); }