stephy / CalendarPicker

CalendarPicker Component for React Native
787 stars 369 forks source link

Is this plugin can be used for time picker #220

Open jitendrahpatwa opened 3 years ago

jitendrahpatwa commented 3 years ago

Hi,

Want to know is Calendar Picker also can be used for time picker using native or customize time wizard where can have option like hour minute with ante meridiem and post meridiem. Is it or is any other relatively plugin available for time picker, please reply.

oakkas commented 3 years ago

I am also wondering the same question.

peacechen commented 3 years ago

Please submit a PR to add this feature. IMHO it's outside the scope of CalendarPicker. The user would need to click a button to change to time picker mode, and that could be easily implemented through an external button that shows either the CalendarPicker or time picker. For instance:

<Button onClick={toggleTimeOrDate}>

{ timeOrDate ?
  <CalendarPicker
    ...
  />
  :
  <MyTimePicker/>
}

I would be open to a PR adding time picker support. It would need to be maintained, so whoever writes it should also be ready to support it.