react-native-calendar-kit icon indicating copy to clipboard operation
react-native-calendar-kit copied to clipboard

Custom Header with month and year

Open servicegmce opened this issue 3 months ago • 0 comments

Hello, i want to show above the days the current month and year, i don't know if it is possible.

<TimelineCalendar 
    viewMode="day"
    customHeader={(date) => {
        const month = date.format('MMMM');
        const year = date.format('YYYY');
        return (
          <View style={{ flexDirection: 'row', alignItems: 'center', justifyContent: 'center', padding: 10 }}>
            <Text style={{ fontSize: 18, fontWeight: 'bold' }}>{month} {year}</Text>
          </View>
        );
    }}
/>

servicegmce avatar Mar 23 '24 18:03 servicegmce