A React Native component specialized for weekly calendars. The user interface is inspired by react-native-calendars.
npm install react-native-simple-weekly-calendar
import { WeeklyCalendar } from 'react-native-simple-weekly-calendar';
<WeeklyCalendar
// props
/>
Code examples can be found here.
Redefine the date element.
- Type:
(props: DayComponentProps) => ReactNode
Redefine the day of the week element.
- Type:
(props: DayHeaderComponentProps) => ReactNode
The week containing this date is determined as the initial week of the calendar. Uses YYYY-MM-DD
format.
- Type:
string
You can add a mark to a specific date.
- Type:
MarkedDayProps[]
Redefine the month element.
- Type:
(props: MonthComponentProps) => ReactNode
Redefine the element that moves to the future week.
- Type:
(props: NextComponentProps) => ReactNode
A function called when a date is selected.
- Type:
(date: string) => void
Redefine the element that moves to the past week.
- Type:
(props: PrevComponentProps) => ReactNode
The selected date. Uses YYYY-MM-DD
format.
- Type:
string
Defines the colors of the elements that make up the calendar.
- Type:
WeeklyCalendarTheme
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library