stephy / CalendarPicker

CalendarPicker Component for React Native
787 stars 369 forks source link

Adding the ability to customize the initial view #340

Closed dmarcucci closed 1 year ago

dmarcucci commented 1 year ago

See https://github.com/stephy/CalendarPicker/pull/339.

I'm implementing the picker in a form where I want the user to select date of birth. I think it would be more straightforward UX wise to have them start with selecting year then month / day. However, I wasn't able to find a current prop that would allow this.

Seems it is just a matter of setting currentView in the state, so I just added a new prop to do so.

dmarcucci commented 1 year ago

https://github.com/stephy/CalendarPicker/pull/339 has been merged.

peacechen commented 1 year ago

Thanks @dmarcucci This has been published on npm as v7.1.4