|
6 | 6 | ],
|
7 | 7 | "extends": ["ScrollView"],
|
8 | 8 | "extendsLink": ["https://reactnative.dev/docs/scrollview"],
|
9 |
| - "example": "https://github.com/wix/react-native-calendars/blob/master/example/src/screens/timelineCalendar.tsx", |
| 9 | + "example": "https://github.com/wix/react-native-calendars/blob/master/example/src/screens/timelineCalendarScreen.tsx", |
10 | 10 | "props": [
|
11 | 11 | {
|
12 |
| - "name": "theme", |
13 |
| - "type": "Theme", |
14 |
| - "description": "Specify theme properties to override specific styles for calendar parts" |
| 12 | + "name": "date", |
| 13 | + "type": "string | string[]", |
| 14 | + "description": "The date / dates of this timeline instance in ISO format (e.g. 2011-10-25)" |
15 | 15 | },
|
16 | 16 | {
|
17 | 17 | "name": "events",
|
|
46 | 46 | "description": "Handler which gets executed when background's long pressed released. Pass to handle creation of a new event"
|
47 | 47 | },
|
48 | 48 | {
|
49 |
| - "name": "renderEvent", |
50 |
| - "type": "(event: PackedEvent) => JSX.Element", |
51 |
| - "description": "Specify a custom event block" |
| 49 | + "name": "theme", |
| 50 | + "type": "Theme", |
| 51 | + "description": "Specify theme properties to override specific styles for calendar parts" |
52 | 52 | },
|
53 | 53 | {
|
54 | 54 | "name": "scrollToFirst",
|
55 | 55 | "type": "boolean",
|
56 | 56 | "description": "Whether to scroll to the first event"
|
57 | 57 | },
|
| 58 | + { |
| 59 | + "name": "scrollToNow", |
| 60 | + "type": "boolean", |
| 61 | + "description": "Whether to scroll to the current time on first render", |
| 62 | + "default": "false" |
| 63 | + }, |
| 64 | + { |
| 65 | + "name": "initialTime", |
| 66 | + "type": "NewEventTime", |
| 67 | + "description": "The initial time to scroll to when the timeline is first rendered", |
| 68 | + "default": "{ hour: 0, minute: 0 }" |
| 69 | + }, |
58 | 70 | {
|
59 | 71 | "name": "format24h",
|
60 | 72 | "type": "boolean",
|
61 | 73 | "description": "Whether to use 24 hours format for the timeline hours",
|
62 | 74 | "default": "true"
|
63 | 75 | },
|
| 76 | + { |
| 77 | + "name": "renderEvent", |
| 78 | + "type": "(event: PackedEvent) => JSX.Element", |
| 79 | + "description": "Specify a custom event block" |
| 80 | + }, |
| 81 | + { |
| 82 | + "name": "showNowIndicator", |
| 83 | + "type": "boolean", |
| 84 | + "description": "Whether to show the now indicator", |
| 85 | + "default": "false" |
| 86 | + }, |
| 87 | + { |
| 88 | + "name": "scrollOffset", |
| 89 | + "type": "number", |
| 90 | + "description": "A scroll offset value that the timeline will sync with" |
| 91 | + }, |
| 92 | + { |
| 93 | + "name": "onChangeOffset", |
| 94 | + "type": "(offset: number) => void", |
| 95 | + "description": "Listen to onScroll event of the timeline component" |
| 96 | + }, |
64 | 97 | {
|
65 | 98 | "name": "overlapEventsSpacing",
|
66 | 99 | "type": "number",
|
|
72 | 105 | "type": "number",
|
73 | 106 | "description": "Spacing to keep at the right edge (for background press)",
|
74 | 107 | "default": "10"
|
| 108 | + }, |
| 109 | + { |
| 110 | + "name": "unavailableHours", |
| 111 | + "type": "UnavailableHours[]", |
| 112 | + "description": "Range of available hours" |
| 113 | + }, |
| 114 | + { |
| 115 | + "name": "unavailableHoursColor", |
| 116 | + "type": "string", |
| 117 | + "description": "Background color for unavailable hours" |
| 118 | + }, |
| 119 | + { |
| 120 | + "name": "numberOfDays", |
| 121 | + "type": "number", |
| 122 | + "description": "The number of days to present in the timeline calendar", |
| 123 | + "default": "1" |
| 124 | + }, |
| 125 | + { |
| 126 | + "name": "timelineLeftInset", |
| 127 | + "type": "number", |
| 128 | + "description": "The left inset of the timeline calendar (sidebar width)", |
| 129 | + "default": "72" |
| 130 | + }, |
| 131 | + { |
| 132 | + "name": "testID", |
| 133 | + "type": "string", |
| 134 | + "description": "Identifier for testing" |
75 | 135 | }
|
76 | 136 | ]
|
77 | 137 | }
|
0 commit comments