Gathering detailed insights and metrics for react-simple-pull-to-refresh3
Gathering detailed insights and metrics for react-simple-pull-to-refresh3
Gathering detailed insights and metrics for react-simple-pull-to-refresh3
Gathering detailed insights and metrics for react-simple-pull-to-refresh3
npm install react-simple-pull-to-refresh
npm install react-simple-pull-to-refresh3
Typescript
Module System
Node Version
NPM Version
66.9
Supply Chain
92.8
Quality
75.2
Maintenance
100
Vulnerability
100
License
TypeScript (52.1%)
JavaScript (34.11%)
CSS (4.97%)
SCSS (4.89%)
HTML (3.92%)
Total Downloads
473
Last Day
1
Last Week
1
Last Month
16
Last Year
109
MIT License
180 Stars
117 Commits
44 Forks
3 Watchers
10 Branches
7 Contributors
Updated on Jun 30, 2025
Latest Version
2.1.1
Package Id
react-simple-pull-to-refresh3@2.1.1
Unpacked Size
21.37 kB
Size
6.17 kB
File Count
16
NPM Version
8.5.3
Node Version
16.13.1
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-75%
1
Compared to previous week
Last Month
6.7%
16
Compared to previous month
Last Year
41.6%
109
Compared to previous year
A Simple Pull-To-Refresh Component for React Application with 0 dependency. Works for Mobile and Desktop.
⚠️ I don't have much time to take care of the issues at the moment.
🙏 Any help and contribution is greatly appreciated.
npm i react-simple-pull-to-refresh
1import PullToRefresh from 'react-simple-pull-to-refresh';
Pull To Refresh only
1// ... 2 3return ( 4 <PullToRefresh onRefresh={handleRefresh}> 5 <ul> 6 {list.map((item, index) => ( 7 <li key={index}>{item}</li> 8 ))} 9 </ul> 10 </PullToRefresh> 11); 12 13// ...
Pull To Refresh and Fetch More enabled
1// ... 2 3return ( 4 <PullToRefresh onRefresh={handleRefresh} canFetchMore={true} onFetchMore={handleFetchMore}> 5 <ul> 6 {list.map((item, index) => ( 7 <li key={index}>{item}</li> 8 ))} 9 </ul> 10 </PullToRefresh> 11); 12 13// ...
Name | Type | Required | Default | Description |
---|---|---|---|---|
isPullable | boolean | false | true | Enable or disable pulling feature |
onRefresh | () => Promise | true | Function called when Refresh Event has been trigerred | |
pullDownThreshold | number | false | 67 | Distance in pixel to pull to trigger a Refresh Event |
maxPullDownDistance | number | false | 95 | Maximum transitionY applied to Children when dragging |
resistance | number | false | 1 | Scale of difficulty to pull down |
refreshingContent | JSX.Element or string | false | Content displayed when Pulling or Fetch more has been trigerred | |
pullingContent | JSX.Element or string | false | Content displayed when Pulling | |
canFetchMore | boolean | false | false | Enable or disable fetching more feature |
onFetchMore | () => Promise | false | Function called when Fetch more Event has been trigerred | |
fetchMoreThreshold | number | false | 100 | Distance in pixel from bottom of the container to trigger a Fetch more Event |
backgroundColor | string | false | Apply a backgroundColor | |
className | string | false |
1.3.0: Add a resistance prop, that allows to adjust the pull down difficulty - (From: @joshuahiggins)
1.2.5: Fix event listenter leaks - (From: @d-s-x)
1.2.4: Fix overscroll on iOS Safari - (From: @d-s-x)
1.2.3: Add React 17+ as valid peer dependencies - (From: @Felixmosh)
1.2.2: Remove non-null assertion operators from ref.current + TouchEvent check for Mozilla - (From: @HamAndRock)
1.2.1: Remove unnecessary z-index
1.2.0: onRefresh and onFetchMore now require to be of type () => Promise
1.1.2: Bind Scroll event to Window
1.1.0: Check for "canFetchMore" value for each scroll events.
1.1.0: Add a Fetch More feature
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 7/30 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
60 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More