rndtpkr
Fork of react-native-ui-datepicker. does everything it does, just lighter and better.
~49% smaller (4.85 MB lighter) 🎉
What's New
Auto time format (
autoSystemFormat) Auto 12h/24h detectionMinute stepping (
minuteStep) 5/10/15/30 min intervalsLooping wheels (
enableLooping) 23→00→01, 59→00→01 Smart: only loops when 10+ optionsSmart rounding Next interval up
Type safety "00" vs 0 fixed
How We Made It Lighter
Dependencies
lodash(4.9 MB) →dequal(489 bytes) 99% smaller!Assets PNG/SVG → Unicode
‹›Zero bytesRemoved Jalali calendar, extra numerals
Build Tree-shaking + provenance
Installation
npm install rndtpkrUsage
import DatePicker from 'rndtpkr';
<DatePicker
mode="single"
date={date}
onChange={({ date }) => setDate(date)}
timePicker={true}
autoSystemFormat={true} // NEW
minuteStep={15} // NEW
enableLooping={true} // NEW (default)
/>Contributing
PRs welcome!
License
MIT