Skip to content

Commit 512be98

Browse files
authored
Merge pull request #194 from leonh/leonh-patch-1
added an explicit pullDownToRefreshThreshold in the example
2 parents f4dab31 + 395d3f5 commit 512be98

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ added. An infinite-scroll that actually works and super-simple to integrate!
2929
// below props only if you need pull down functionality
3030
refreshFunction={this.refresh}
3131
pullDownToRefresh
32+
pullDownToRefreshThreshold={50}
3233
pullDownToRefreshContent={
3334
<h3 style={{textAlign: 'center'}}>&#8595; Pull down to refresh</h3>
3435
}
@@ -79,7 +80,7 @@ name | type | description
7980
**pullDownToRefresh** | bool | to enable **Pull Down to Refresh** feature
8081
**pullDownToRefreshContent** | node | any JSX that you want to show the user, `default={<h3>Pull down to refresh</h3>}`
8182
**releaseToRefreshContent** | node | any JSX that you want to show the user, `default={<h3>Release to refresh</h3>}`
82-
**pullDownToRefreshThreshold** | number | minimum distance the user needs to pull down to trigger the refresh, `default=100px`
83+
**pullDownToRefreshThreshold** | number | minimum distance the user needs to pull down to trigger the refresh, `default=100px` , a lower value may be needed to trigger the refresh depending your users browser.
8384
**refreshFunction** | function | this function will be called, it should return the fresh data that you want to show the user
8485
**initialScrollY** | number | set a scroll y position for the component to render with.
85-
**key** | string | the key for the current data set being shown, used when the same component can show different data sets at different times, `default=undefined`
86+
**key** | string | the key for the current data set being shown, used when the same component can show different data sets at different times, `default=undefined`

0 commit comments

Comments
 (0)