react-native-calendar-kit
react-native-calendar-kit copied to clipboard
Custom Header with month and year
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>
);
}}
/>