README
react-native-events-week-calendar
Getting started
$ npm install react-native-events-week-calendar --save
Mostly automatic installation
$ react-native link react-native-events-week-calendar
Images
Screen Shot in Android Tab

Gif Image

Sample at Snack Expo
Usage
import { VCalendar } from 'react-native-events-week-calendar';
...
<VCalendar
onNewEvent={this.onNewEvent}
onClickEvent={this.onClickEvent}
columnHeaders={headers}
title="My Title"
hourStart={8}
hourEnd={17}
showHourStart={7}
/>
...
Props
onNewEventfunction(item) callback e.g.{"Title": "Column title", "hours": {"from": "8:15", "to": "8:30"}, "index": 1}onClickEventfunction(item) callback e.g.{"title": "Dr. Mariana Joseph", "summary": "3412 Piedmont Rd NE, GA 3032", "start": "2020-09-07 09:15:00", "end": "2020-09-07 10:30:00", "Column-index": 1}title(string) The left top cellhourStart(number) The working hour start, e.g. 8hourEnd(number) The working hour end, e.g. 20showHourStart(number) e.g. 7. The calendar scrolls to the hour 7th when display.columnHeaders(array)
[
{
Title: "No Name",
events: [
{
start: '2020-09-07 08:00:00',
end: '2020-09-07 08:45:00',
title: 'Dr. Mariana Lisa',
summary: '3412 Piedmont Rd NE, GA 3032',
color: 'green',
},
...
{
start: '2020-09-07 11:15:00',
end: '2020-09-07 12:30:00',
title: 'Dr. Tran Vinh',
summary: '290 Nguyen Van Troi, Ho Chi Minh, Viet Nam',
},]
},
...
]
TODO:
- Horizontal scroll, vertical scroll
- Drag/Drop Events