- 
                Notifications
    You must be signed in to change notification settings 
- Fork 214
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Feature request
An infinite scroll example.
Current behavior
I have a Tab.FlatList with an infinite load.  I was using an onMomentumScrollBegin with FlatList to throttle a call to onEndReached. However, now onMomentumScrollBegin doesn't fire as we're using react-native-reanimated.
If I create a scrollHandler with:
const scrollHandler = useAnimatedScrollHandler({
  onBeginDrag: (e) => {
    console.log('onBeginDrag');
  },
  onEndDrag: (e) => {
    console.log('onEndDrag');
  },
  onMomentumScrollBegin: (e) => {
    console.log('onMomentumScrollBegin');
  },
  onMomentumScrollEnd: (e) => {
    console.log('onMomentumScrollEnd');
  },
});And pass to:
<Tabs.FlatList
  onScroll={scrollHandler}
  .
  .I don't believe this will not be called as onScroll is created in the library.
bekatd and anhquan291
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request