Installation
Get started with React Native Calendars by installing the package in your React Native or Expo project.Prerequisites
Before installing React Native Calendars, ensure you have:- React Native 0.60 or higher
- Node.js 18 or higher
- React 16.8 or higher (for hooks support)
Install the package
React Native Calendars is implemented in pure JavaScript, so no native module linking is required.
Peer dependencies
The library has the following peer dependencies that should already be in your project:reactreact-native
xdate- Date manipulation libraryhoist-non-react-statics- Utility for hoisting staticslodash- Utility functionsmemoize-one- Memoization utilityprop-types- Runtime type checking
Expo compatibility
React Native Calendars works seamlessly with Expo projects without requiring ejecting. Simply install the package and start using it.
Verify installation
To verify that the installation was successful, try importing the Calendar component:TypeScript support
React Native Calendars includes built-in TypeScript definitions. No additional @types packages are needed.
Optional dependencies
Moment.js
If you want to use Moment.js for date manipulation, you can optionally install it:Moment.js is listed as an optional dependency. The library works perfectly fine with the built-in XDate library.
Next steps
Explore quick start
Learn how to create your first calendar component in the quick start guide.