Skip to main content
Version: 2.x

CalendarHeader

The CalendarHeader component is an essential part of the React Native Calendar Kit. It renders the header section of the calendar, including day names, dates, and optionally all-day events.

Props

The CalendarHeader component accepts the following props:

Prop NameTypeDefaultDescription
dayBarHeightnumber60Height of the day bar.
renderHeaderItemfunction-Custom renderer for header items.
renderExpandIconfunction-Custom renderer for the expand icon.
LeftAreaComponentcomponent-Custom component for the left area of the header.
headerBottomHeightnumber20Height of the bottom section of the header.
collapsedItemsnumber2Number of items to show when collapsed.
renderEventfunction-Custom renderer for events in the header.
eventMinMinutesnumber20Minimum minutes to calculate height of all day event (scale by timeInterval height)
eventMaxMinutesnumber30Maximum minutes to calculate height of all day event (scale by timeInterval height)
eventInitialMinutesnumber20Initial minutes to calculate height of all day event (scale by timeInterval height)