react-native-datetimepicker / datetimepicker

React Native date & time picker component for iOS, Android and Windows
MIT License
2.37k stars 387 forks source link

can't left allign. Tried everything. #858

Open sirusbaladi opened 3 months ago

sirusbaladi commented 3 months ago

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?

https://github.com/react-native-datetimepicker/datetimepicker/assets/86076488/15a99329-e27a-4959-97fb-517cff538037

image
raulsanchez1024 commented 1 month ago

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