Home > front end >  Only showing specific number of itmes on the screen in a flatList
Only showing specific number of itmes on the screen in a flatList

Time:01-10

I am using dummyData to render items in my Flatlist. My dummyData has 30 items and I want 10 items to be shown on the window at a time. How do I do that? I am new to react native.

CodePudding user response:

you can define state for data of flatlist and handle that with add first 10 first number of dummy data list . and when scroll goes to down and end of list load more item. for more info see this

  •  Tags:  
  • Related