@@ -31,10 +31,9 @@ export interface CalendarProps extends CalendarHeaderProps, DayProps {
3131 /** Specify style for calendar container element */
3232 style ?: StyleProp < ViewStyle > ;
3333 /** Initially visible month */
34- current ?: string ;
35- current ?: XDate ; // TODO: migrate to 'initialDate'
34+ current ?: string ; // TODO: migrate to 'initialDate'
3635 /** Initially visible month. If changed will initialize the calendar to this value */
37- initialDate ?: XDate ;
36+ initialDate ?: string ;
3837 /** Minimum date that can be selected, dates before minDate will be grayed out */
3938 minDate ?: string ;
4039 /** Maximum date that can be selected, dates after maxDate will be grayed out */
@@ -93,13 +92,13 @@ class Calendar extends Component<CalendarProps, CalendarState> {
9392 /** Specify style for calendar container element. Default = {} */
9493 style : PropTypes . oneOfType ( [ PropTypes . object , PropTypes . array , PropTypes . number ] ) ,
9594 /** Initially visible month in 'yyyy-MM-dd' format. Default = now */
96- current : PropTypes . any ,
95+ current : PropTypes . string ,
9796 /** Initially visible month. If changed will initialize the calendar to this value */
98- initialDate : PropTypes . any ,
97+ initialDate : PropTypes . string ,
9998 /** Minimum date that can be selected, dates before minDate will be grayed out. Default = undefined */
100- minDate : PropTypes . any ,
99+ minDate : PropTypes . string ,
101100 /** Maximum date that can be selected, dates after maxDate will be grayed out. Default = undefined */
102- maxDate : PropTypes . any ,
101+ maxDate : PropTypes . string ,
103102 /** If firstDay=1 week starts from Monday. Note that dayNames and dayNamesShort should still start from Sunday. */
104103 firstDay : PropTypes . number ,
105104 /** Collection of dates that have to be marked. Default = {} */
0 commit comments