Assume that the user is in middle of recyclerlistview and the app fetched new items from server and prepend them to the list and I want to show a button for _scroll to top_ to view new items.
How can I implement that?
Get a ref to RecyclerListView and call scrollToIndex(0)
https://github.com/Flipkart/recyclerlistview/blob/master/src/core/RecyclerListView.tsx#L222
@AbdallaMohamed you save my day
Most helpful comment
Get a ref to RecyclerListView and call
scrollToIndex(0)https://github.com/Flipkart/recyclerlistview/blob/master/src/core/RecyclerListView.tsx#L222