Wednesday, March 15, 2023
HomeReactReact Native Timeline Calendar Package

React Native Timeline Calendar Package


A React Native timeline calendar part package, absolutely applied utilizing @shopify/flash-list, react-native-gesture-handler, and react-native-reanimated. Help pinch to zoom, drag and drop to create/replace occasions.

The way to use it:

1. Set up & import.

# Yarn
$ yarn add @howljs/calendar-kit

# NPM
$ npm i @howljs/calendar-kit
import { TimelineCalendar } from '@howljs/calendar-kit';

2. Create calendars.

// Week View
<TimelineCalendar viewMode="week" />;

// Day View
<TimelineCalendar viewMode="day" />;

// 3-days
<TimelineCalendar viewMode="threeDays" />;

// Work week
<TimelineCalendar viewMode="workWeek" />;

3. Obtainable props.

VIEW_MODE: 'week' as const,
FIRST_DAY: 1,
MIN_DATE: dayjs().subtract(1, 'y').format('YYYY-MM-DD'),
MAX_DATE: dayjs().add(1, 'y').format('YYYY-MM-DD'),
INITIAL_DATE: dayjs().format('YYYY-MM-DD'),
START: 0,
END: 24,
TIME_INTERVAL: 60,
INIT_TIME_INTERVAL_HEIGHT: 60,
MIN_TIME_INTERVAL_HEIGHT: 29,
MAX_TIME_INTERVAL_HEIGHT: 116,
CELL_BORDER_COLOR: '#E8E9ED',
PRIMARY_COLOR: '#1973E7',
CREATE_ITEM_BACKGROUND_COLOR: 'rgba(25, 115, 231, 0.1)',
SECONDARY_COLOR: '#5F6369',
WHITE_COLOR: '#FFFFFF',
HOUR_WIDTH: 53,
DAY_BAR_HEIGHT: 60,
SPACE_CONTENT: 16,
DRAG_CREATE_INTERVAL: 60,
DRAG_STEP: 10,
UNAVAILABLE_BACKGROUND_COLOR: '#F5F5F5',
RIGHT_EDGE_SPACING: 1,
OVERLAP_EVENTS_SPACING: 1,
BLACK_COLOR: '#000000',

Preview:

React Native Calendar Kit

Obtain Particulars:

Writer: howljs

Reside Demo: View The Demo

Obtain Hyperlink: Obtain The Supply Code

Official Web site: https://github.com/howljs/react-native-calendar-kit

License: MIT

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments