Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating a DateTimePicker React-Native Android?

I'am trying to create a DateTimePicker for react-native android,the ios side has it in one view but for android its separate. Calling it is not a task but i like to include it both in one view like in ios (my concept in below screenshot).

enter image description here

enter image description here

Not completely like the above some how customize it reduce both its size, is there an option to place them at specific portions of screen.

I repeat the case is react-native(react-js) not android(java)

like image 536
Amal p Avatar asked Oct 25 '25 12:10

Amal p


1 Answers

It is not possible to customize the android picker and reduce their sizes you suggested.

Instead I would use this library: react-native-date-picker. With that picker you are able to select time and date in the same picker, even in Android. I had exactly the same problem myself and couldn't find any solution to it, so I ended up creating that picker.

like image 50
Henning Hall Avatar answered Oct 27 '25 01:10

Henning Hall



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!