Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

335
Vistas
How can I change the style of selected date in react-native-calendar-stripe

I set Button to show calendar and when press this Button and select a date this shows in the calendar -strip located at the top. problem is that the style changes just for the pre-selected date and when I select the new date the style is not function.

this is my code:

 <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 Respuestas
Responde la pregunta

0

1- In DateTimePicker you have onChange prop, so make onChange function set the selected value.

2- Now in CalendarStrip let the prop selectedDate take the value you have set in onChange

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda