CalendarPicker
CalendarPicker copied to clipboard
initialDate props not working
I confirm, initialDate
props does not seems to have any effect.
<CalendarPicker initialDate={moment()} />
<CalendarPicker initialDate={new Date()} />
none of those work.
I finally found the solution, the props names are quite confusing, here is how to set the initial date
<CalendarPicker selectedStartDate={selectedDate.toDate()} />
explained here https://github.com/stephy/CalendarPicker/issues/268