How to achieve onEndReached in animated scrollview? #2865
Unanswered
Pietro-Putelli
asked this question in
Q&A
Replies: 1 comment
-
you can add it to the Animated.ScrollView directly like below <Animated.ScrollView
onScroll={scrollhandler}
onEndReached={e => {
}}
/> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm working with an
Animated.ScrollView
components and I want to achieve aonEndReached
method, like inFlatList
, and I'm using theisCloseToBottom
function to know when the scroll is at the end and call onEndReached.Here's my code that actually works, but the function is call twice, it seems that the endReached state first update is not visible and so it execute the if state twice.
Beta Was this translation helpful? Give feedback.
All reactions