0.1.18 • Published 5 months ago

react-native-calendar-sn v0.1.18

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

react-native-calendar-sn

React Native Calendar Library from SiliconNexus

Installation

npm install react-native-calendar-sn

Usage

import { CalendarMonth } from 'react-native-calendar-sn';;

// ...
<CalendarMonth
      events={[
        {
          title: "Level 1",
          start: new Date("2023-10-10T10:00:05.327+00:00"),
          end: new Date("2023-10-10T12:00:05.327+00:00"),
        },
   
      ]} // type="day"  eventDate={{ year:2023, month:9, date:23, }}
    />

For Single Date

<CalendarMonth
      events={[
        {
          title: "Level 1",
          start: new Date("2023-10-10T10:00:05.327+00:00"),
          end: new Date("2023-10-10T12:00:05.327+00:00"),
        },
   
      ]} 
      type="day"  //types are -> '3days' | 'week' | 'day' | 'custom' | 'month'
      eventDate={{ year:2023, month:9, date:23, }} // it is mandatory if you want to use 'type' attribute.
    />

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.( you can't )

License

MIT


Made with create-react-native-library