@@ -457,54 +457,10 @@ const CalendarScreen = () => {
457457 ) ;
458458 } ;
459459
460- const renderCodeSnippet = ( ) => {
461- return (
462- < Calendar
463- monthFormat = { "MMMM yyyy" }
464- hideExtraDays = { true }
465- firstDay = { 1 }
466- disableAllTouchEventsForDisabledDays = { true }
467- enableSwipeMonths = { true }
468- markingType = { "period" }
469- markedDates = { {
470- "2022-03-09" : { color : "#F5823C" , startingDay : true } ,
471- "2022-03-10" : { color : "#F5823C" , endingDay : true } ,
472- } }
473- theme = { {
474- backgroundColor : "#0C0C0D" ,
475- calendarBackground : "#0C0C0D" ,
476- textSectionTitleColor : "#EEECF1" ,
477- textSectionTitleDisabledColor : "#d9e1e8" ,
478- selectedDayBackgroundColor : "#00adf5" ,
479- selectedDayTextColor : "#ffffff" ,
480- todayTextColor : 'pink' ,
481- dayTextColor : "#7A7585" ,
482- textDisabledColor : "#d9e1e8" ,
483- // dotColor: "#00adf5",
484- selectedDotColor : "#ffffff" ,
485- arrowColor : 'pink' ,
486- disabledArrowColor : "#d9e1e8" ,
487- monthTextColor : "#ffffff" ,
488- indicatorColor : "blue" ,
489- // textDayFontFamily: "monospace",
490- // textMonthFontFamily: "monospace",
491- // textDayHeaderFontFamily: "monospace",
492- textDayFontWeight : "300" ,
493- textMonthFontWeight : "bold" ,
494- textDayHeaderFontWeight : "300" ,
495- textDayFontSize : 15 ,
496- textMonthFontSize : 15 ,
497- textDayHeaderFontSize : 15 ,
498- } }
499- />
500- ) ;
501- } ;
502-
503460 const renderExamples = ( ) => {
504461 return (
505462 < Fragment >
506- { renderCodeSnippet ( ) }
507- { /* {renderCalendarWithSelectableDate()}
463+ { renderCalendarWithSelectableDate ( ) }
508464 { renderCalendarWithWeekNumbers ( ) }
509465 { renderCalendarWithMinAndMaxDates ( ) }
510466 { renderCalendarWithCustomDay ( ) }
@@ -516,7 +472,7 @@ const CalendarScreen = () => {
516472 { renderCalendarWithPeriodMarkingAndSpinner ( ) }
517473 { renderCalendarWithPeriodMarkingAndDotMarking ( ) }
518474 { renderCalendarWithMultiPeriodMarking ( ) }
519- {renderCalendarWithCustomMarkingType()} */ }
475+ { renderCalendarWithCustomMarkingType ( ) }
520476 </ Fragment >
521477 ) ;
522478 } ;
0 commit comments