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

332
Views
¿Cómo puedo cambiar el estilo de la fecha seleccionada en react-native-calendar-stripe?

Configuro el botón para que muestre el calendario y cuando presiono este botón y selecciono una fecha, esto se muestra en la franja del calendario ubicada en la parte superior. el problema es que el estilo cambia solo para la fecha preseleccionada y cuando selecciono la nueva fecha el estilo no funciona.

este es mi código:

 <CalendarStrip scrollable style={{ height: 70, paddingBottom: 10 }} calendarColor={'#4caf50'} selectedDate={new Date(date)} calendarHeaderStyle={{ display: "none" }} iconStyle={{ display: "none" }} highlightDateNameStyle={{ color: 'black', position: "absolute", bottom: 10, color: 'green', backgroundColor: "white" }} highlightDateNumberStyle={{ color: 'green', padding: 10, borderRadius: 6, backgroundColor: "white" }} dateNumberStyle={{ color: 'white', borderRadius: 6, }} dateNameStyle={{ color: 'white', position: "absolute", bottom: 0.5 }} iconContainer={{ flex: 0.1 }} /> {show && ( <DateTimePicker testID="dateTimePicker" value={new Date()} mode={mode} is24Hour={true} display="default" onChange={onChange} /> )}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

1- En DateTimePicker tiene onChange prop, así que haga que la función onChange establezca el valor seleccionado.

2- Ahora, en CalendarStrip , deje que la propiedad selectedDate tome el valor que ha establecido en onChange

about 4 years ago · Juan Pablo Isaza Report
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!