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
142 stars 19 forks source link

formatTime missing from examples #28

Closed callum-gander closed 5 months ago

callum-gander commented 5 months ago

Hi,

In the examples you give, there's a formatTime function being called, but this is never imported or defined. Could this be clarified in the examples? Either by importing it or defining what this formatTime is expected to look like, obviously I'm guessing it will vary and be dictated by the user but having an example within the example would improve the quality of the docs.

Thanks, great package btw

troberts-28 commented 5 months ago

Hey @callum-gander 👋

This is a great shout. You're right that the formatTime function is just a utility function to display the selected time, but it would absolutely make the examples more complete if it were included. Will add it in 🙌

callum-gander commented 5 months ago

Perfect! Thanks for the quick response 🙌