Timeline
Timeline component
(code example)
info
This component extends ScrollView props.
API​
theme​
Specify theme properties to override specific styles for calendar parts
Themestyle​
Specify style for calendar container element
ViewStyleevents​
List of events to render on the timeline
Event[]start​
The timeline day start time
numberend​
The timeline day end time
numberonEventPress​
Handler which gets executed when event is pressed
(event: Event) => voidonBackgroundLongPress​
Handler which gets executed when background is long pressed. Pass to handle creation of a new event
(timeString: string, time: NewEventTime) => voidonBackgroundLongPressOut​
Handler which gets executed when background's long pressed released. Pass to handle creation of a new event
(timeString: string, time: NewEventTime) => voidrenderEvent​
Specify a custom event block
(event: PackedEvent) => JSX.ElementscrollToFirst​
Whether to scroll to the first event
booleanformat24h​
Whether to use 24 hours format for the timeline hours
boolean