I was looking trough the Docs and found the “loadMoreItems” event in this link: https://docs.nativescript.org/ui/ns-ui-widgets/list-view
The method in my loadMoreItems event is firing before the ListView even renders the Ajax content and right after it loads the method fires twice in a row, without even scrolling.
Is there a way to prevent the event from firing until the ajax is done AND the list scrolled all the way?
Is there any other event that fires when the user gets to the bottom of the list?
The code I’m running can be found at https://pastebin.com/p4PqgYDX
Sorry for any grammar or spelling mistakes, English is not my first language.
Thanks in advance =D