I want to scroll in a flatlist but the issue here is the scroll needs to be an infinity scroll, as in the scroll action needs to be executed till the element is found. I tried scroll using while()
condition but it doesn't work. I also tried scrollto()
but that isn't working either. I tried scrolling using offset()
that works but that just scrolls a page and stops. FYI- Pagination is implemented in the UI.
FYI
- Project - React Native
- List type - FlatList
- Pagination implemented - yes