An extensible calendar component for react-native.
npm i rn-calendars --save
varReact=require('react-native');varCalendar=require('rn-calendars');module.exports=React.createClass({render(){return(<Calendar/>);}});| Property | Description | Type | Default | note |
|---|---|---|---|---|
| startDate | the date of first shown month. | string | new Date() | |
| headings | headings of the calendar | array | ['S', 'M', 'T', 'W', 'T', 'F', 'S'] | |
| renderDay | customize render function of days in the calendar. | func | just render the date | |
| selectDay | do something after choose one day | func | console.log(date) | works only when the renderDay function is not customized. |
| scrollEnabled | could scroll the calendar or not | bool | false |
View RNCalendar.
Thanks to react-native-calendar.
The MIT License
