Closed vanGalilea closed 9 months ago
@mdjastrzebski let me know how this can be fixed and I'd raise a PR, I wanna start somewhere 😅
@vanGalilea similar issue has been already solved. See issue #1540 for details and PR #1543 for fix (released in v12.4.2)
Note, we might need to update the doc you linked to.
Note, we might need to update the doc you linked to.
I'll raise a PR to update the docs 👍🏻
@mdjastrzebski I see that you removed the Flatlist
examples in this commit I've raised this pr #1551 for the time being.
Though I still haven't find a way testing whether onEndReached
is being called after simulating a scroll to bottom.
@vanGalilea you can try calling fireEvent(element, 'endReached')
. It should raise onEndReached
event on a FlatList
. You might need to experiment with proper event payload though.
Describe the bug
onEndReached
on aFlatList
is not being triggered anymore after afireEvent.scroll
Expected behavior
onEndReached
is called the way it used to work beforeSteps to Reproduce
Follow this example from the docs. My test was something along the lines of:
Screenshots
N/A
Versions
Side Note
0.72.4
to0.73.1
so I'm suspecting its incompatible with RN's new version.onScroll
is being called after afireEvent.scroll
in contrary toonEndReached