React Native Calendar 📆
Installation
Using yarn
Usage
API
Prop | Description | Required? | Default | Type |
---|---|---|---|---|
| Callback called when a day is pressed. | no | Function | |
| Callback called when a day is pressed. | yes | (Date) => void | |
| Minimum date that can be selected. | no | null | Date |
| Maximum date that can be selected. | no | null | Date |
| Selected start date | no | null | Date |
| Selected end date | requires startDate | null | Date |
| Calendar StyleSheet | no | null | ThemeType |
| Calendar language | es, en, fr, br | 'en' | LocaleType |
| Array of day names | no | [] | string[] |
| Array of names of each mo | no | [] | string[] |
| Show Week columns | no | true | boolean |
| Show Month title | no | true | boolean |
| FlatList initialNumToRender | no | 2 | number |
| First month to render | no | current month | 'YYYY-MM-DD' |
| Number of months to render | no | 12 | number |
| Turn off range date selection | no | false | boolean |
| Monday as first day of the week | no | false | boolean |
| Change Month row height | no | 370 | number |
| Multi-dot support on Day component | no | undefined | MarkedDays |
| Disabled days | no | null | {[string]: any } |
| Render custom Day content | no | null | Function |
| Use this for web, render all months | no | null | boolean |
| handleViewableItemsChange callback | no | null | Function |
| Remove offset Days. | no | false | boolean |
License
MIT
Last updated