
Company News
Socket Joins the OpenJS Foundation
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.
@iftek/react-native-month-view-calendar
Advanced tools
React Native Month View Calendar
npm install --save @iftek/react-native-month-view-calendar
import React from 'react';
import MonthViewCalendar from '@iftek/react-native-month-view-calendar';
import { View, ScrollView } from 'react-native'
const Component = () => {
const eventsForCalendar = [
{
title: 'My awesome event',
date: new Date(),
},
];
return (
<ScrollView>
<MonthViewCalendar
cellStyles={{ minHeight: 65 }}
events={eventsForCalendar}
renderEvent={(event, i) => {
return (
<Text key={i} numberOfLines={1}>{event.title}</Text>
)
}}
/>
</ScrollView>
);
}
| Properties | Default | Description |
|---|---|---|
| date | new Date() | Date from which the calendar will be built |
| dayTextStyles | {} | Styles for label day(numer of day), can be array or object |
| events | Array of events | |
| headerTextStyles | {} | Styles for label week day name, can be array or object |
| cellStyles | {} | Styles for all cells |
| pastMonthsCellStyles | {} | Styles for all cells from past dates |
| weekDays | ['S', 'M', 'T', 'W', 'T', 'F', 'S'] | Array with name of the day of the week |
| renderEvent | Function required to render event information. Example (event, index) => | |
| onPress | Callback when day cell is pressed | |
| onSwipe | Callback when calendar is swiped | |
| onSwipePrev | Callback when calendar is swiped to previous month | |
| onSwipeNext | Callback when calendar is swiped to next month | |
| onScrollToIndexFailed | Callback to handle errors on swipe |
To use the component methods save a reference to it:
const reference = useRef();
<MonthViewCalendar
ref={reference}
/>
{
/// your props
date: new Date(),
}
FAQs
Calendar month view to display events
The npm package @iftek/react-native-month-view-calendar receives a total of 6 weekly downloads. As such, @iftek/react-native-month-view-calendar popularity was classified as not popular.
We found that @iftek/react-native-month-view-calendar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.

Security News
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.