React Native Calendar Kit is a powerful and flexible calendar component for React Native applications. It provides a customizable and feature-rich calendar view with support for various functionalities.
https://github.com/user-attachments/assets/9a099b37-6898-4e05-87d9-c8fd82e16c63
https://github.com/user-attachments/assets/3896a8c8-4cde-4f76-8621-168be4cba74b
For detailed usage and customization options, please refer to the official documentation.
For examples and usage, please refer to the example app.
To install React Native Calendar Kit, follow these steps:
yarn add @howljs/calendar-kit
# or
npm install @howljs/calendar-kit
The libraries we will install now are react-native-gesture-handler and react-native-reanimated. If you already have these libraries installed and at the latest version, you are done here! Otherwise, read on.
npx expo install react-native-gesture-handler react-native-reanimated
Follow installation instructions for React Native Reanimated and React Native Gesture Handler.
yarn add react-native-gesture-handler react-native-reanimated
# or
npm install react-native-gesture-handler react-native-reanimated
Follow installation instructions for React Native Reanimated and React Native Gesture Handler.
The library includes optional haptic feedback when dragging events. To enable haptic feedback, please install the expo-haptics
or react-native-haptic-feedback
library and set the useHaptic
prop to true
on the CalendarContainer
component.
npx expo install expo-haptics
or
yarn add react-native-haptic-feedback
# or
npm install --save react-native-haptic-feedback
import { CalendarBody, CalendarContainer, CalendarHeader } from '@howljs/calendar-kit';
import React from 'react';
const Calendar = () => {
return (
<CalendarContainer>
<CalendarHeader />
<CalendarBody />
</CalendarContainer>
);
};
export default Calendar;