@@ -13,7 +13,7 @@ import {AccessibilityInfo, PanResponder, Animated, View, ViewStyle, Text, Image,
1313import { CALENDAR_KNOB } from '../testIDs' ;
1414import { page , weekDayNames } from '../dateutils' ;
1515import { parseDate , toMarkingFormat } from '../interface' ;
16- import { Theme , DateData , Direction } from 'types' ;
16+ import { Theme , DateData , Direction } from '../ types' ;
1717import styleConstructor , { HEADER_HEIGHT } from './style' ;
1818import CalendarList , { CalendarListProps } from '../calendar-list' ;
1919import Calendar from '../calendar' ;
@@ -139,7 +139,7 @@ class ExpandableCalendar extends Component<Props, State> {
139139 style : ViewStyle ;
140140 } ;
141141 visibleMonth : number ;
142- visibleYear : number ;
142+ visibleYear : number | undefined ;
143143 initialDate : XDate ;
144144 headerStyleOverride : Theme ;
145145 header : React . RefObject < any > = React . createRef ( ) ;
@@ -436,7 +436,6 @@ class ExpandableCalendar extends Component<Props, State> {
436436 if ( month && this . visibleMonth !== month ) {
437437 this . visibleMonth = month ;
438438 if ( first ( value ) ?. year ) {
439- // @ts -expect-error
440439 this . visibleYear = first ( value ) ?. year ;
441440 }
442441
@@ -580,6 +579,7 @@ class ExpandableCalendar extends Component<Props, State> {
580579 { ...others }
581580 theme = { themeObject }
582581 ref = { this . calendar }
582+ // @ts -expect-error should be converted to string
583583 current = { this . initialDate }
584584 onDayPress = { this . onDayPress }
585585 onVisibleMonthsChange = { this . onVisibleMonthsChange }
0 commit comments