
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
rn-react-native-calendar
Advanced tools
This is a calendar package for react native
npm install rn-react-native-calendar
import {WeekCalendar} from "rn-react-native-calendar"
const App =()=>{
const items = {
'2022-04-28':{},
'2022-05-03':{}
}
return(
<View>
<WeekCalendar items={items} itemsOnThisDate={(items)=>console.log(items)} />
</View>
)
}

| Prop | description | type | defualt value |
|---|---|---|---|
| items | items which you want to be marked on calendar | object | {} |
| buttonColor | color on left and right button background | string | '#FFEADF' |
| selectedDateColor | selected date background Color | string | '#ff5a3d' |
| todayDateColor | today's date backgroundColor | string | 'gray' |
| itemsOnThisDate | callback which triggers when you click on date with items data | function | (item)=>{ } |
import {CalendarModal} from "rn-react-native-calendar"
const App =()=>{
const [showCalendar,setShowCalendar] = useState(false)
const [date,setDate] = useState(new Date())
const items = {
'2022-04-28':{},
'2022-05-03':{}
}
const onDayPressChanges = (date)=>{
return(
<View>
<CalendarModal
items={items}
currentDate={date}
visible={showCalendar}
onDayPress={(date)=>onDayPressChanges(date)}
onDismiss={()=>setShowCalendar(false)}
selectedDateColor={'#ff5a3d'}
/>
</View>
)
}
| Prop | description | type | defualt value |
|---|---|---|---|
| items | items which you want to be marked on calendar | object | {} |
| visible | should show calendar modal or not | boolean | false |
| selectedDateColor | selected date background Color | string | '#ff5a3d' |
| onDayPress | callback triggered when a day is pressed | function | (data)=>{ } |
| onDismiss | callback which triggers when calendar modal closes | function | ()=>{ } |

feel free to contribute
MIT
FAQs
calendar package for react native
We found that rn-react-native-calendar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.