Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

200
Views
show react-dates airbnb daterangepicker in mobile screen vertically fullscreen

I am using react-dates package from airbnb, and I am using DateRangePicker component of this library. I want to show datepicker verically fullscreen as shown in below image Vertically fullscreen

Now, My question is how can we show this dateRangePicker component in mobile screen with vertically fullscreen.

import React, { useState } from "react";
import { DateRangePicker } from "react-dates";
 
export const Datepicker = () => {
 const [startDate, setStartDate] = useState();
 const [endDate, setEndDate] = useState();
 const [focusedInput, setFocusedInput] = useState();

return (
  <div>
   <h1> Date </h1>{" "}
   <p> selected start Date is : {JSON.stringify(startDate)} </p>
   <p> selected end Date is : {JSON.stringify(endDate)} </p>
    {window.matchMedia("(max-width: 700px)").matches && (
     <DateRangePicker
       orientation="vertical"
       numberOfMonths={1}
       verticalHeight={800}
       startDate={startDate}
       startDateId="start-date"
       endDate={endDate}
       endDateId="end-date"
       onDatesChange={({ startDate, endDate }) => {
        setStartDate(startDate);
        setEndDate(endDate);
       }}
       focusedInput={focusedInput}
        onFocusChange={(focusedInput) => setFocusedInput(focusedInput)}
     />
   )}
   </div>
 )

Demo code sandbox is Codesandbox

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!