The Agenda component provides a combined calendar and list view, allowing users to see a calendar at the top and a list of items for the selected day below. It extends props from CalendarList and FlatList.
To use it, you must provide an items object where keys are date strings (e.g., '2012-05-22') and values are arrays of objects representing the items for that day. To represent an empty date, use an empty array []. If a date key is missing entirely, the component treats it as not yet loaded.
<Agenda
items={{
'2012-05-22': [{name: 'item 1 - any js object'}],
'2012-05-23': [{name: 'item 2 - any js object', height: 80}],
'2012-05-24': [],
'2012-05-25': [{name: 'item 3 - any js object'}, {name: 'any js object'}]
}}
// ... other props
/>