Skip to content

Repository files navigation

rn-calendars

NPM versionnpm download

An extensible calendar component for react-native.

Install

npm i rn-calendars --save

Usage

varReact=require('react-native');varCalendar=require('rn-calendars');module.exports=React.createClass({render(){return(<Calendar/>);}});

Props

PropertyDescriptionTypeDefaultnote
startDatethe date of first shown month.stringnew Date()
headingsheadings of the calendararray['S', 'M', 'T', 'W', 'T', 'F', 'S']
renderDaycustomize render function of days in the calendar.funcjust render the date
selectDaydo something after choose one dayfuncconsole.log(date)works only when the renderDay function is not customized.
scrollEnabledcould scroll the calendar or notboolfalse

Example

View RNCalendar.

ScreenShot

Acknowledgement

Thanks to react-native-calendar.

License

The MIT License

About

An extensible Calendar component for react-native.

Resources

Stars

11 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages