I am using Flatlist to show my items in a list. Now the problem is that whenever the screen loads. It should show the last item. For this, I have used the inverted property of the Flatlist. But the problem is that now my sticky header of the Flatlist is at the end of the Flatlist that is after the items. It is looking like the footer. How can I implement a sticky header in the inverted Flatlist.
Asked
Active
Viewed 820 times
2
-
1What about using ListFooterComponent instead of ListHeaderComponent ? – monsty May 07 '20 at 14:01
-
maybe https://stackoverflow.com/questions/49224471/fixed-footer-in-react-native-with-flatlist can help? – Ishita Sinha May 07 '20 at 15:09
-
Hi, @monsty I have tried ListFooterComponent, but it does not stick at the top. Thanks – Narayan Choudhary May 08 '20 at 04:44