PedroBern / react-native-collapsible-tab-view

A cross-platform Collapsible Tab View component for React Native
MIT License
827 stars 160 forks source link

How can I detect that the user has reached bottom of Tabs.ScrollView? #301

Closed timothygorer closed 1 year ago

timothygorer commented 1 year ago

I am trying to detect when user reaches bottom of Tabs.ScrollView so then I can load more data for pagination. It looks like the onScroll of Tabs.ScrollView is not firing. I am not quite sure why, but I suspect it has to do with the react-native-collapsible-tab-view containing another ScrollView inside it. I need to use Tabs.ScrollView because the refreshControl property works with it, but refreshControl doesn't work with Tabs.FlatList. I have seen the hook useCurrentTabScrollY() mentioned here before, but I am not sure how to correctly use this hook to detect if user has reached the bottom of the Tabs.ScrollView. Any advice would be highly appreciated.

acro5piano commented 1 year ago

@timothygorer Did you find a solution?