bamlab / react-tv-space-navigation

A React Native module to handle spatial navigation for a TV application in a 100% cross-platform way
https://bamlab.github.io/react-tv-space-navigation/
MIT License
178 stars 15 forks source link

onEndReached for SpatialNavigationVirtualizedGrid #139

Closed beelzick closed 1 week ago

beelzick commented 2 weeks ago

Is your feature request related to a problem? Please describe. I need to implement backend pagination for a very large grid using the SpatialNavigationVirtualizedGrid component.

Describe the solution you'd like I propose adding an onEndReached prop to the component. This prop would be triggered when the last row is reached, enabling the loading of additional data from the backend.

Additional context If there is an existing way to achieve this with the current components that I may have overlooked, I would appreciate guidance on that as well.

pierpo commented 2 weeks ago

Hey, the property already exists. It's true that I haven't tested it in a long time, but it should be present and effective for your need 🤔

beelzick commented 1 week ago

thanks for the answer, actually this is available from the component level, it's just not in the documentation

pierpo commented 1 week ago

Thanks! I just added it 😊