codeherence / react-native-header

A high-performance, cross-platform animated header component for React Native applications.
MIT License
218 stars 15 forks source link

feat: suppress the callback function onScroll #30

Closed zvitek closed 3 months ago

zvitek commented 3 months ago

Hi, thanks for a great component that works on the first try and saved me a lot of work.

On the SectionListWithHeaders component you suppress the callback function onScroll.

So it is not possible to detect if the user has reached the end of the content to load the next one.

Do you have a workaround for this or is this rather unthought out functionality?

Thank you!

e-younan commented 3 months ago

Hi @zvitek, thanks for the issue.

Have you tried to use the following props for your feature:

zvitek commented 3 months ago

Oh, my God. Sorry, I didn't realize that the following props are available on the VirtualizedList component. I modified the implementation and it works perfectly.

Thank you for your amazing work!

e-younan commented 3 months ago

@zvitek Thank you!

As a side note, if you need a custom scroll listener in the future, you can implement one via onScrollWorklet.