I am looking for a way to have a callback called after scrollToEnd has reached the end of my ScrollView. The animated scrolling begins when i click a button and when end is reached i want to call some other actions.
I have looked over the documentation but it seems no callback is implemented by default?
My code below
scrollViewRef.current.scrollToEnd({animated: true});
// WHEN DONE i have some actions here that i want to trigger when animated scroll has reached the end
<ScrollView ref={scrollViewRef} contentContainerStyle={{ flexGrow: 1 }} >
//Content here
</ScrollView>