@@ -37,7 +37,7 @@ const CalendarScreen = () => {
3737 const renderCalendarWithSelectableDate = ( ) => {
3838 return (
3939 < Fragment >
40- < Text style = { styles . text } > Calendar with selectable date</ Text >
40+ < Text style = { styles . text } > Selectable date</ Text >
4141 < Calendar
4242 testID = { testIDs . calendars . FIRST }
4343 enableSwipeMonths
@@ -50,19 +50,19 @@ const CalendarScreen = () => {
5050 ) ;
5151 } ;
5252
53- const renderCalendarWithWeekNumbers = ( ) => {
53+ const renderCalendarWithWeekNumbersAndSpinner = ( ) => {
5454 return (
5555 < Fragment >
56- < Text style = { styles . text } > Calendar with week numbers </ Text >
57- < Calendar style = { styles . calendar } hideExtraDays showWeekNumbers />
56+ < Text style = { styles . text } > Week numbers and spinner </ Text >
57+ < Calendar style = { styles . calendar } hideExtraDays showWeekNumbers displayLoadingIndicator />
5858 </ Fragment >
5959 ) ;
6060 } ;
6161
6262 const renderCalendarWithMinAndMaxDates = ( ) => {
6363 return (
6464 < Fragment >
65- < Text style = { styles . text } > Calendar with min and max dates</ Text >
65+ < Text style = { styles . text } > Min and max dates</ Text >
6666 < Calendar
6767 style = { styles . calendar }
6868 hideExtraDays
@@ -78,7 +78,7 @@ const CalendarScreen = () => {
7878 const renderCalendarWithMarkedDatesAndHiddenArrows = ( ) => {
7979 return (
8080 < Fragment >
81- < Text style = { styles . text } > Calendar with marked dates and hidden arrows</ Text >
81+ < Text style = { styles . text } > Marked dates and hidden arrows</ Text >
8282 < Calendar
8383 style = { styles . calendar }
8484 current = { INITIAL_DATE }
@@ -92,7 +92,6 @@ const CalendarScreen = () => {
9292 [ getDate ( 10 ) ] : { disabled : true , activeOpacity : 0 , disableTouchEvent : false }
9393 } }
9494 hideArrows = { true }
95- // disabledByDefault={true}
9695 />
9796 </ Fragment >
9897 ) ;
@@ -101,7 +100,7 @@ const CalendarScreen = () => {
101100 const renderCalendarWithMultiDotMarking = ( ) => {
102101 return (
103102 < Fragment >
104- < Text style = { styles . text } > Calendar with multi -dot marking</ Text >
103+ < Text style = { styles . text } > Multi -dot marking</ Text >
105104 < Calendar
106105 style = { styles . calendar }
107106 current = { INITIAL_DATE }
@@ -127,10 +126,10 @@ const CalendarScreen = () => {
127126 ) ;
128127 } ;
129128
130- const renderCalendarWithPeriodMarkingAndSpinner = ( ) => {
129+ const renderCalendarWithThemeAndDisabledDays = ( ) => {
131130 return (
132131 < Fragment >
133- < Text style = { styles . text } > Calendar with period marking and spinner </ Text >
132+ < Text style = { styles . text } > Custom theme and disabled Wednesdays </ Text >
134133 < Calendar
135134 // style={styles.calendar}
136135 current = { INITIAL_DATE }
@@ -173,6 +172,9 @@ const CalendarScreen = () => {
173172 [ getDate ( 26 ) ] : { color : 'gray' } ,
174173 [ getDate ( 27 ) ] : { endingDay : true , color : 'gray' }
175174 } }
175+ disabledDaysIndexes = { [ 3 ] }
176+ disabledByWeekDays = { [ 3 ] }
177+ disableAllTouchEventsForDisabledDays
176178 />
177179 </ Fragment >
178180 ) ;
@@ -181,7 +183,7 @@ const CalendarScreen = () => {
181183 const renderCalendarWithPeriodMarkingAndDotMarking = ( ) => {
182184 return (
183185 < Fragment >
184- < Text style = { styles . text } > Calendar with period marking and dot marking</ Text >
186+ < Text style = { styles . text } > Marking and dot marking</ Text >
185187 < Calendar
186188 current = { INITIAL_DATE }
187189 minDate = { getDate ( - 14 ) }
@@ -211,7 +213,6 @@ const CalendarScreen = () => {
211213 } ,
212214 [ getDate ( 25 ) ] : { inactive : true , disableTouchEvent : true }
213215 } }
214- disabledDaysIndexes = { [ 0 , 6 ] }
215216 theme = { {
216217 textInactiveColor : '#a68a9f' ,
217218 textSectionTitleDisabledColor : 'grey' ,
@@ -227,7 +228,7 @@ const CalendarScreen = () => {
227228 const renderCalendarWithMultiPeriodMarking = ( ) => {
228229 return (
229230 < Fragment >
230- < Text style = { styles . text } > Calendar with multi -period marking</ Text >
231+ < Text style = { styles . text } > Multi -period marking</ Text >
231232 < Calendar
232233 style = { styles . calendar }
233234 current = { INITIAL_DATE }
@@ -262,7 +263,7 @@ const CalendarScreen = () => {
262263 const renderCalendarWithCustomMarkingType = ( ) => {
263264 return (
264265 < Fragment >
265- < Text style = { styles . text } > Custom calendar with custom marking type</ Text >
266+ < Text style = { styles . text } > Custom marking type</ Text >
266267 < Calendar
267268 style = { styles . calendar }
268269 hideExtraDays
@@ -360,7 +361,7 @@ const CalendarScreen = () => {
360361 const renderCalendarWithCustomDay = ( ) => {
361362 return (
362363 < Fragment >
363- < Text style = { styles . text } > Calendar with custom day component</ Text >
364+ < Text style = { styles . text } > Custom day component</ Text >
364365 < Calendar
365366 style = { [ styles . calendar , styles . customCalendar ] }
366367 dayComponent = { ( { date, state} ) => {
@@ -416,7 +417,7 @@ const CalendarScreen = () => {
416417
417418 return (
418419 < Fragment >
419- < Text style = { styles . text } > Calendar with custom header title</ Text >
420+ < Text style = { styles . text } > Custom header title</ Text >
420421 < Calendar
421422 style = { styles . calendar }
422423 customHeaderTitle = { CustomHeaderTitle }
@@ -464,7 +465,7 @@ const CalendarScreen = () => {
464465
465466 return (
466467 < Fragment >
467- < Text style = { styles . text } > Calendar with custom header component</ Text >
468+ < Text style = { styles . text } > Custom header component</ Text >
468469 < Calendar
469470 initialDate = { INITIAL_DATE }
470471 testID = { testIDs . calendars . LAST }
@@ -478,7 +479,7 @@ const CalendarScreen = () => {
478479 const renderCalendarWithInactiveDays = ( ) => {
479480 return (
480481 < Fragment >
481- < Text style = { styles . text } > Calendar with inactive days</ Text >
482+ < Text style = { styles . text } > Inactive days</ Text >
482483 < Calendar
483484 style = { styles . calendar }
484485 disableAllTouchEventsForInactiveDays
@@ -500,15 +501,15 @@ const CalendarScreen = () => {
500501 return (
501502 < Fragment >
502503 { renderCalendarWithSelectableDate ( ) }
503- { renderCalendarWithWeekNumbers ( ) }
504+ { renderCalendarWithWeekNumbersAndSpinner ( ) }
504505 { renderCalendarWithMinAndMaxDates ( ) }
505506 { renderCalendarWithCustomDay ( ) }
506507 { renderCalendarWithInactiveDays ( ) }
507508 { renderCalendarWithCustomHeaderTitle ( ) }
508509 { renderCalendarWithCustomHeader ( ) }
509510 { renderCalendarWithMarkedDatesAndHiddenArrows ( ) }
510511 { renderCalendarWithMultiDotMarking ( ) }
511- { renderCalendarWithPeriodMarkingAndSpinner ( ) }
512+ { renderCalendarWithThemeAndDisabledDays ( ) }
512513 { renderCalendarWithPeriodMarkingAndDotMarking ( ) }
513514 { renderCalendarWithMultiPeriodMarking ( ) }
514515 { renderCalendarWithCustomMarkingType ( ) }
0 commit comments