0.2.0 • Published 5 years ago

react-native-horizontal-timeline v0.2.0

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

react-native-horizontal-timeline

A horizontal scrollable timeline with month days

Installation

npm i react-native-horizontal-timeline --save

How to use it

First step: import the component:

import { HorizontalTimeline } from 'react-native-horizontal-timeline';

Second step: use it with the required props

<HorizontalTimeline date={new Date().toISOString()} />

demo

Properties

PropDescriptionDefault
date(required)Valid string used in the Date() constructor, example: '2018-01-10', '2013-07-02T09:00:00', etcNone
dataObject in the format of { : { marked: , info: },... }, the number represents the day in the timeline, marked will bring an elevation to the day and you can also provide a information to be displayed below the dot imageNone
backgroundColorbackgroundColor passed to each View of Day container#fefefe
colorcolor of the text's of the component#ac78fb