react-native-datetimepicker / datetimepicker

React Native date & time picker component for iOS, Android and Windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can't left allign. Tried everything.

sirusbaladi opened this issue · comments

Hi All, I've been stuck on this for far too long and I've done way more complicated UIs, but can't figure this one out, so asking the help from the community!

As you can see from the video, the datetimepicker ( https://github.com/react-native-datetimepicker/datetimepicker) changes size depending on the date selected. I tried my best, limiting max width, min width, width or wrapping it in a view and so on.

What I'm tried to achive is to have the picker left alignment fixed. If it want's to expand it can be on the right side. I don't get why i can't do this. Another acceptable solution would be to fix the width so that it can neither expand or shrink so that I can the allign it with other elements.

Any help?

WhatsApp.Video.2024-02-09.at.2.41.13.PM.mp4
image

Did you find a solution? I am also facing the same issue