Vanshika Sharma
Vanshika Sharma

Reputation: 3

Only showing specific number of itmes on the screen in a flatList

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.

Upvotes: 0

Views: 640

Answers (1)

Meisam Sabaghi
Meisam Sabaghi

Reputation: 826

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

Upvotes: 1

Related Questions