|
| 1 | +import {TimelineEventProps, CalendarUtils} from 'react-native-calendars'; |
| 2 | + |
| 3 | +const EVENT_COLOR = '#e6add8'; |
| 4 | +const today = new Date(); |
| 5 | +export const getDate = (offset = 0) => CalendarUtils.getCalendarDateString(new Date().setDate(today.getDate() + offset)); |
| 6 | + |
| 7 | +export const timelineEvents: TimelineEventProps[] = [ |
| 8 | + { |
| 9 | + start: `${getDate(-1)} 09:20:00`, |
| 10 | + end: `${getDate(-1)} 12:00:00`, |
| 11 | + title: 'Merge Request to React Native Calendars', |
| 12 | + summary: 'Merge Timeline Calendar to React Native Calendars' |
| 13 | + }, |
| 14 | + { |
| 15 | + start: `${getDate()} 01:15:00`, |
| 16 | + end: `${getDate()} 02:30:00`, |
| 17 | + title: 'Meeting A', |
| 18 | + summary: 'Summary for meeting A', |
| 19 | + color: EVENT_COLOR |
| 20 | + }, |
| 21 | + { |
| 22 | + start: `${getDate()} 01:30:00`, |
| 23 | + end: `${getDate()} 02:30:00`, |
| 24 | + title: 'Meeting B', |
| 25 | + summary: 'Summary for meeting B', |
| 26 | + color: EVENT_COLOR |
| 27 | + }, |
| 28 | + { |
| 29 | + start: `${getDate()} 01:45:00`, |
| 30 | + end: `${getDate()} 02:45:00`, |
| 31 | + title: 'Meeting C', |
| 32 | + summary: 'Summary for meeting C', |
| 33 | + color: EVENT_COLOR |
| 34 | + }, |
| 35 | + { |
| 36 | + start: `${getDate()} 02:40:00`, |
| 37 | + end: `${getDate()} 03:10:00`, |
| 38 | + title: 'Meeting D', |
| 39 | + summary: 'Summary for meeting D', |
| 40 | + color: EVENT_COLOR |
| 41 | + }, |
| 42 | + { |
| 43 | + start: `${getDate()} 02:50:00`, |
| 44 | + end: `${getDate()} 03:20:00`, |
| 45 | + title: 'Meeting E', |
| 46 | + summary: 'Summary for meeting E', |
| 47 | + color: EVENT_COLOR |
| 48 | + }, |
| 49 | + { |
| 50 | + start: `${getDate()} 04:30:00`, |
| 51 | + end: `${getDate()} 05:30:00`, |
| 52 | + title: 'Meeting F', |
| 53 | + summary: 'Summary for meeting F', |
| 54 | + color: EVENT_COLOR |
| 55 | + }, |
| 56 | + { |
| 57 | + start: `${getDate(1)} 00:30:00`, |
| 58 | + end: `${getDate(1)} 01:30:00`, |
| 59 | + title: 'Visit Grand Mother', |
| 60 | + summary: 'Visit Grand Mother and bring some fruits.', |
| 61 | + color: 'lightblue' |
| 62 | + }, |
| 63 | + { |
| 64 | + start: `${getDate(1)} 02:30:00`, |
| 65 | + end: `${getDate(1)} 03:20:00`, |
| 66 | + title: 'Meeting with Prof. Behjet Zuhaira', |
| 67 | + summary: 'Meeting with Prof. Behjet at 130 in her office.', |
| 68 | + color: EVENT_COLOR |
| 69 | + }, |
| 70 | + { |
| 71 | + start: `${getDate(1)} 04:10:00`, |
| 72 | + end: `${getDate(1)} 04:40:00`, |
| 73 | + title: 'Tea Time with Dr. Hasan', |
| 74 | + summary: 'Tea Time with Dr. Hasan, Talk about Project' |
| 75 | + }, |
| 76 | + { |
| 77 | + start: `${getDate(1)} 01:05:00`, |
| 78 | + end: `${getDate(1)} 01:35:00`, |
| 79 | + title: 'Dr. Mariana Joseph', |
| 80 | + summary: '3412 Piedmont Rd NE, GA 3032' |
| 81 | + }, |
| 82 | + { |
| 83 | + start: `${getDate(1)} 14:30:00`, |
| 84 | + end: `${getDate(1)} 16:30:00`, |
| 85 | + title: 'Meeting Some Friends in ARMED', |
| 86 | + summary: 'Arsalan, Hasnaat, Talha, Waleed, Bilal', |
| 87 | + color: 'pink' |
| 88 | + }, |
| 89 | + { |
| 90 | + start: `${getDate(2)} 01:40:00`, |
| 91 | + end: `${getDate(2)} 02:25:00`, |
| 92 | + title: 'Meet Sir Khurram Iqbal', |
| 93 | + summary: 'Computer Science Dept. Comsats Islamabad', |
| 94 | + color: 'orange' |
| 95 | + }, |
| 96 | + { |
| 97 | + start: `${getDate(2)} 04:10:00`, |
| 98 | + end: `${getDate(2)} 04:40:00`, |
| 99 | + title: 'Tea Time with Colleagues', |
| 100 | + summary: 'WeRplay' |
| 101 | + }, |
| 102 | + { |
| 103 | + start: `${getDate(2)} 00:45:00`, |
| 104 | + end: `${getDate(2)} 01:45:00`, |
| 105 | + title: 'Lets Play Apex Legends', |
| 106 | + summary: 'with Boys at Work' |
| 107 | + }, |
| 108 | + { |
| 109 | + start: `${getDate(2)} 11:30:00`, |
| 110 | + end: `${getDate(2)} 12:30:00`, |
| 111 | + title: 'Dr. Mariana Joseph', |
| 112 | + summary: '3412 Piedmont Rd NE, GA 3032' |
| 113 | + }, |
| 114 | + { |
| 115 | + start: `${getDate(4)} 12:10:00`, |
| 116 | + end: `${getDate(4)} 13:45:00`, |
| 117 | + title: 'Merge Request to React Native Calendars', |
| 118 | + summary: 'Merge Timeline Calendar to React Native Calendars' |
| 119 | + } |
| 120 | +]; |
0 commit comments