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

177
Vistas
how to figure out if bottom tip of scroll indicator is on the y position of an element?

I have y positions of elements such as burgers, loaded fries, etc. I need to fire a function when the bottom tip of scrollview scroll indicator reaches a specific y position(i have the y positions from onLayout of elements)? I'm aware of onScroll nativeEvent but don't know how to do the math?

  <Animated.ScrollView
    showsVerticalScrollIndicator
    scrollEventThrottle={16}
     
    onScroll={({nativeEvent}) => {
      scrollY.value = nativeEvent.contentOffset.y;
    }}

Ideally as you see on the screen shot, you see scroll indicator on the right edge, so when y position of it matches the title, e.g. Burgers, I want to fire a function, and if it reaches the title Loaded fries below, fire a function, still not have idea how to calculate it?

enter image description here

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