1.0.0 • Published 3 years ago

react-native-ybha-hourminute-timepicker v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

react-native-ybha-hourminute-timepicker

Installation

npm i react-native-ybha-hourminute-timepicker

or

yarn add react-native-ybha-hourminute-timepicker

Props

PropTypeDescriptionDefault
maxHournumberMaximum of hour23
minHournumberMinimum of hour0
maxMinutenumberMaximum of minute59
minMinutenumberMinimum of minute0
hourIntervalnumberThe interval at which hours can be selected.1
minuteIntervalnumberThe interval at which minutes can be selected.1
hourUnitstringAdd extra text to hour""
minuteUnitstringAdd extra text to minute""
selectedHourstringDefault hour"0"
selectedMinutestringDefault minute"00"
itemStyleobjectItem text style{}
textCancelstringCancel button textCancel
textConfirmstringConfirm button textConfirm
onCancelfunctionEvent on Cancel button
onConfirmfunctionEvent on Confirm button

Methods

Method NameDescription
openOpen TimePicker
closeClose TimePicker

Note

Always set ref to TimePicker and call each method by using this.TimePicker.methodName() like example above.

License

This project is licensed under the MIT License

Author

Made with ❤️ by ybha.