react-native-calendars icon indicating copy to clipboard operation
react-native-calendars copied to clipboard

calendarlist rendering issue

Open smallmachines-hyunho opened this issue 1 year ago • 2 comments

Please make our job easier by filling this template out to completion. If you're requesting a feature instead of reporting a bug, please feel free to skip the Environment and Reproducible Demo sections.

Description

i'm having rendering problem for calendarlist, it doesn't appear before i slide the calendarlist. please help me to solve this problem.

<CalendarList style={{marginTop: 0, width: Dimensions.get('window').width, alignSelf: 'center',}}

            theme={{todayTextColor: 'red',
                textDayFontSize: 16,
                textDayFontWeight: 'bold',
                textMonthFontSize: 18,
                textMonthFontWeight: 'bold',
                textSectionTitleColor: 'rgba(138, 138, 138, 1)',
                // dayTextAtIndex1: { color: 'red' }
            }}

            markingType={"period"}
            markedDates={markedSelectedDates}
            onDayPress={onDayPress}
            onVisibleMonthsChange={(months) => {console.log('보고 있는 달력 월', months);}}
            monthFormat={"yyyy년 MM월"}
            pastScrollRange={12}
            futureScrollRange={1}
            scrollEnabled={true}
            horizontal={true}
            pagingEnabled={true}
            hideArrows={false}
            renderArrow={renderArrow}
            // disabledDaysIndexes={[0]}
            hideExtraDays={false}

        />

Environment

im doing it with react native.

Screenshots

image image

smallmachines-hyunho avatar Jan 16 '24 05:01 smallmachines-hyunho

solved. it was because of current={} props. thanks

smallmachines-hyunho avatar Jan 16 '24 08:01 smallmachines-hyunho

solved. it was because of current={} props. thanks

I also use this to address the same issue as you. Thank you

menadeth avatar Feb 29 '24 08:02 menadeth