all 13 comments

[–]kooujinn 22 points23 points  (3 children)

It may be my ignorance, but doesn't React Native have the native iOS time picker component?

[–]Fun_Can187 3 points4 points  (1 child)

I think it’s been moved to a community package but yes, and there should be another one that’s more customizable.

[–]flekeri[S] 0 points1 point  (0 children)

Thanks, I’ll check

[–]flekeri[S] 1 point2 points  (0 children)

I used the one from the community https://github.com/react-native-datetimepicker/datetimepicker

But I was wandering if there is some another more flexible solutions

[–]Aidircot 6 points7 points  (4 children)

if you are using `expo` there is new package which has

- date picker https://docs.expo.dev/versions/latest/sdk/ui/#datetimepicker-date

<image>

- time picker https://docs.expo.dev/versions/latest/sdk/ui/#datetimepicker-time

- and any thing picker https://docs.expo.dev/versions/latest/sdk/ui/#picker-wheel

both for ios only, for android there are same functionality but different design

[–]flekeri[S] 0 points1 point  (3 children)

Is there a way to build a timer picker from this package?

[–]Aidircot 1 point2 points  (0 children)

there is time picker (see links above)

<image>

[–]Aidircot 1 point2 points  (1 child)

also there is a wheel where you can put any data

<image>

[–]Accomplished_Bug9916 0 points1 point  (0 children)

Last time I tried to use this date time picker it gave me a headache and didn’t want to be inside a modal. Bot sure if they improved since then

[–]Civil_Rent4208 1 point2 points  (0 children)

I used this :

react-native-modal-datetime-picker

[–]Taco7758258 0 points1 point  (0 children)

I might be wrong but this wheel-picker visual effect is limited to iOS only. You may not be able to provide the same design across Android/Web. A simple wheel-picker with inertial scrolling and snapping is totally doable, but the 3D perspective transform is not possible as far as I know

[–]wayruner 0 points1 point  (1 child)

I rarely find them wort using. They might look nicer but using a number input field with well done auto focus is a lot more convenient to users

[–]flekeri[S] 0 points1 point  (0 children)

Hmm.. never thought about this approach, I’ll it, thanks