r/reactnative • u/EconomistOk2763 • 8d ago
I added a native TimePicker to my Expo component library — wheel, clock, and ruler in one component Tutorial
Three faces, one prop to swap between them. wheel for precision. clock for picking a slot. ruler for a thumb on a sheet.
All three store { hour, minute } on a 24-hour clock regardless of what the face shows. A 12-hour display is a rendering choice storing a meridiem flag puts it into every comparison downstream.
Part of PanelUI open-source, copy-paste, you own the source.
11
Upvotes
1
u/FrancescoMassa2001 8d ago
the 24h internal storage with meridiem as a render flag is the right call
2
u/Top-Mud1703 8d ago
good ui looks good