Skip to content

Commit

Permalink
pagination vs renderOnScroll
Browse files Browse the repository at this point in the history
  • Loading branch information
ECorreia45 committed May 15, 2020
1 parent 62b1044 commit 7dfdf3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions documentation/Doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,8 @@ end it will fetch some more while showing the loading indicator.

It is also good to use on lists which user normally dont reach the end anyways specially if you are letting them search, or filter the list.

`renderOnScroll` prop will not work while pagination props are being used.

```jsx
<PlainList
list={[1,2,3,...10000000]}
Expand All @@ -340,6 +342,8 @@ FlatList comes with pagination out of the box. This is specially great for when
so you start with fetching a small portion and then let the user scroll to the bottom, show the loading indicator while you
fetch some more.

Pagination props will not work while `renderOnScroll` is being used.

### hasMoreItems
###### boolean
You start by telling FlatList if there are more items to come with `hasMoreItems` prop. It will then start monitor scrolling
Expand Down

0 comments on commit 7dfdf3b

Please sign in to comment.