troberts-28 / react-native-timer-picker

A simple, flexible, performant duration picker for React Native apps (Expo & Bare Workflow). Great for timers, alarms and duration inputs. Includes iOS-style haptic and audio feedback.
https://www.npmjs.com/package/react-native-timer-picker
MIT License
132 stars 14 forks source link

Configuration Request: Add possibility to configure padNumbersWithZero #31

Closed kocelke1 closed 1 month ago

kocelke1 commented 1 month ago

In case of minutes and seconds, single digits are padded with zero by default. But currently there is no option for hours to be padded with zero. Please make it configurable by giving some control to TimerPicker for padNumbersWithZero prop of each DurationScroll, instead of the current setup with hardcoded boolean values. Thank you in advance.

troberts-28 commented 1 month ago

Hey @kocelke1,

Thank you for the great suggestion! Will add this to the library in the coming weeks, or feel free to submit a PR if you'd like it added sooner 🚀

kocelke1 commented 1 month ago

Thank you for your response, no rush needed.

troberts-28 commented 1 month ago

Hey @kocelke1, all done 🙌

Upgrade to v1.10.1 to use the new props: