Basic usage
Props
CalendarList extends all Calendar props with additional list-specific properties.Scroll configuration
Maximum amount of months allowed to scroll to the past.
Maximum amount of months allowed to scroll to the future.
Enable or disable scrolling of the calendar list.
Enable or disable vertical/horizontal scroll indicator.
Whether to animate the auto month scroll.
Enable scrolling to top when tapping on status bar (iOS only).
Enable nested scrolling for Android.
Layout configuration
Whether to render the calendar list horizontally. When
true, pagination should be disabled.Enable paging on horizontal calendar list.
Used when calendar scroll is horizontal. Default is device width. Pagination should be disabled when using this prop.
Dynamic calendar height for vertical scrolling.
Style for the List item (the individual calendar).
Use static header that will not scroll with the list (horizontal only).
FlatList props
CalendarList also supports the following FlatList props:Remove clipped subviews to improve performance.
Style for the FlatList content container.
Used to extract a unique key for a given item at the specified index.
Determines when the keyboard should stay visible after a tap.
How far from the end (in units of visible length) the bottom edge of the list must be from the end of the content to trigger the
onEndReached callback.Called once when the scroll position gets within
onEndReachedThreshold of the rendered content.Scroll event handlers
Called when the user begins dragging the calendar list.
Called when the user stops dragging the calendar list.
Called when the momentum scroll starts.
Called when the momentum scroll stops.
Other props
Invoked on mount and layout changes.
Callback for header layout events.
Imperative methods
You can call these methods on the CalendarList ref:scrollToDay
scrollToMonth
Examples
Horizontal calendar list
Vertical calendar list with custom range
Calendar list with static header
Scrollable calendar with custom styling
Notes
When using
horizontal mode with custom calendarWidth, make sure to disable pagingEnabled or set it explicitly to control the scrolling behavior.Related components
- Calendar - Base calendar component
- ExpandableCalendar - Expandable calendar with week view