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

192
Views
muestre las fechas de reacción airbnb daterangepicker en la pantalla móvil verticalmente a pantalla completa

Estoy usando el paquete de fechas de reacción de airbnb, y estoy usando el componente DateRangePicker de esta biblioteca. Quiero mostrar el selector de fecha en pantalla completa vericalmente como se muestra en la imagen de abajoVerticalmente a pantalla completa

Ahora, mi pregunta es cómo podemos mostrar este componente dateRangePicker en la pantalla móvil con pantalla completa verticalmente.

 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> )

Sandbox de código de demostración es 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!