0.0.5 • Published 6 years ago

react-native-calendar-date-picker v0.0.5

Weekly downloads
22
License
-
Repository
github
Last release
6 years ago

react-native-calendar-date-picker

React native calendar date picker component for both android and ios

Features

  • styles can be customised
  • pure javascript implementation

Installation:

Install the component through npm using:

```
npm install react-native-calendar-date-picker --save
```

Example:

```js
import Calendar from 'react-native-calendar-date-picker';


<Calender
    week={['Su','Mn','Tu','We','Th','Fr','Sa']}
    workingDays={{fontSize:20,color:'black'}}
    holidays={{fontSize:20,color:'red'}}
    preDays={{fontSize:20,color:'grey'}}
    onSelect={(date)=>this.onSelect(date)}
/>
```

Props:

* - mandatory

Props NameDescription
* weekarray content listed for days in a week
* onSelectfunction to display the date selected when clicked
workingDaysstyles applied for working days
holidaysstyles applied for holidays
preDaysstyles applied for previous month days