Skip to content

Commit cbed31f

Browse files
committed
Merge branch 'master' into release
2 parents 47128fa + fbbdbba commit cbed31f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/timeline/Timeline.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ export interface TimelineProps {
113113
* The left inset of the timeline calendar (sidebar width), default is 72
114114
*/
115115
timelineLeftInset?: number;
116+
/** Identifier for testing */
117+
testID?: string;
116118
}
117119

118120
const Timeline = (props: TimelineProps) => {
@@ -139,7 +141,8 @@ const Timeline = (props: TimelineProps) => {
139141
unavailableHoursColor,
140142
eventTapped,
141143
numberOfDays = 1,
142-
timelineLeftInset = 0
144+
timelineLeftInset = 0,
145+
testID,
143146
} = props;
144147

145148
const pageDates = useMemo(() => {
@@ -247,6 +250,7 @@ const Timeline = (props: TimelineProps) => {
247250
contentContainerStyle={[styles.current.contentStyle, {width: constants.screenWidth}]}
248251
showsVerticalScrollIndicator={false}
249252
{...scrollEvents}
253+
testID={testID}
250254
>
251255
<TimelineHours
252256
start={start}

0 commit comments

Comments
 (0)