1.0.24 • Published 4 years ago

react-native-events-week-calendar v1.0.24

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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

Image of Sample

Gif Image

Image of Sample

Sample at Snack Expo

link

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

  • onNewEvent function(item) callback e.g. {"Title": "Column title", "hours": {"from": "8:15", "to": "8:30"}, "index": 1}
  • onClickEvent function(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 cell
  • hourStart (number) The working hour start, e.g. 8
  • hourEnd (number) The working hour end, e.g. 20
  • showHourStart (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
1.0.22

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago