
Security News
Cline CLI npm Package Compromised via Suspected Cache Poisoning Attack
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.
@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 | type | Description |
|---|---|---|---|
| date | new Date() | Date from which the calendar will be built | |
| dayTextStyles | {} | TextStyle | (day:Date) => TextStyle | Styles for label day(numer of day), can be function, array or object |
| todayTextStyles | {} | Styles for label day(today), can be array or object | |
| otherMonthsDayTextStyles | {} | Styles for label day(numer of day) other months, can be array or object | |
| otherMonthsEnabled | false | other months day cell onPress enabled or not | |
| events | Array of events | ||
| headerTextStyles | {} | Styles for label week day name, can be array or object | |
| cellStyles | {} | ViewStyle | (day:Date) => ViewStyle | Styles for all cells, can be function, array or object |
| 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
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.

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.

Product
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.

Product
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.