I save the previous scroll offset value and use scrollToOffset to retain the scroll position post sorting is applied. It works for small dataset(say 100).For large dataset (say 200+), the flatlist automatically scrolls to top after scrolling long and then sorting applied. I tried the fix with delay, it did not work.
↧