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

173
Views
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
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!