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

263
Vistas
How to trigger onSelectionChange only when caret moves but input has not changed?

I have an use case in my React Native app (trying to implement mentions) where I need to call a function on the event of onSelectionChange only when the text in the input has not changed but the caret was moved.

At the moment the onSelectionChange function is called when I write as well, but I need it to be called only when the caret was movet without writing anything inside the input.

Is that possible? Sorry I don't really have any code to show for it since I explained what I need, but I did not find anything to check of the caret was moved without adding any new text?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

you should try something like onblur

https://reactnative.dev/docs/textinput#onendediting

https://reactnative.dev/docs/textinput#onblur

this will trigger when you leave the field, you can write your validation in the callback method.

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