0.1.3 • Published 8 years ago

rn-calendars v0.1.3

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

rn-calendars

NPM version npm download

An extensible calendar component for react-native.

Install

npm i rn-calendars --save

Usage

var React = require('react-native');
var Calendar = 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

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago