VOOZH about

URL: https://www.geeksforgeeks.org/react-native/how-to-create-calendar-app-in-react-native/

⇱ How to Create Calendar App in React Native ? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to Create Calendar App in React Native ?

Last Updated : 23 Jul, 2025

In this article, we will see how to add a Calendar to a React Native App. Discover how to enhance your React Native application by integrating a calendar using the powerful react-native-calendars library. With React Native's ability to facilitate cross-platform mobile app development using JavaScript.

This article describes the process of seamlessly adding a calendar to your app.

πŸ‘ How-to-Create--Calendar--App_


To give you a better idea of what we’re going to create, let’s watch a demo video.

Demo Video

Prerequisites:

Step-by-Step Implementation

Step 1: Create a React Native Project

Now, create a project with the following command.

npx create-expo-app app-name --template

Note: Replace the app-name with your app name for example : react-native-demo-app

Next, you might be asked to choose a template. Select one based on your preference as shown in the image below. I am selecting the blank template because it will generate a minimal app that is as clean as an empty canvas in JavaScript.

πŸ‘ Image

It completes the project creation and displays a message: "Your Project is ready!" as shown in the image below.

πŸ‘ Image

Now go into your project folder, i.e., react-native-demo

cd app-name

Project Structure:

πŸ‘ Image

Step 2: Run  Application

Start the server by using the following command.

npx expo start

Then, the application will display a QR code.

  • For the Android users,
    • For the Android Emulator, press "a" as mentioned in the image below.
    • For the Physical Device, download the "Expo Go" app from the Play Store. Open the app, and you will see a button labeled "Scan QR Code." Click that button and scan the QR code; it will automatically build the Android app on your device.
  • For iOS users, simply scan the QR code using the Camera app.
  • If you're using a web browser, it will provide a local host link that you can use as mentioned in the image below.
πŸ‘ Image

Step 3: Install Required Dependencies

npm install react-native-calendars

Approach: We will use the react-native-calendars library, a popular choice for adding a customizable calendar component with features like day selection, date marking, and event display in React Native apps.

Example​: In this example, add a calendar component using the `react-native-calendars` library, allowing users to view and select dates with custom styling.

Step 4: Start Coding

- : Import required libraries at the top of the file.


- : This component is used to show a calendar to users.


- : Make a custom functional component and wrap the above calendar component, and return it from MyCalendar.


Now, wrap the Mycalendar component with a View component and return from the App component. Also, ensure to export the App.


Complete Source Code

App.js:

Output


Comment
Article Tags:

Explore