Gathering detailed insights and metrics for react-simple-pull-to-refresh
Gathering detailed insights and metrics for react-simple-pull-to-refresh
Gathering detailed insights and metrics for react-simple-pull-to-refresh
Gathering detailed insights and metrics for react-simple-pull-to-refresh
use-pull-to-refresh
A simple React custom hook for pull-to-refresh function that support NextJs
@writeroo/react-simple-pull-to-refresh
A Simple Pull To Refresh Component for React Application
react-simple-pull-to-refresh-i
A Simple Pull To Refresh Component for React Application
react-simple-pull-to-refresh3
A Simple Pull To Refresh Component for React Application
npm install react-simple-pull-to-refresh
npm install react-simple-pull-to-refresh
Typescript
Module System
Node Version
NPM Version
94.6
Supply Chain
93.9
Quality
76
Maintenance
100
Vulnerability
100
License
TypeScript (52.1%)
JavaScript (34.11%)
CSS (4.97%)
SCSS (4.89%)
HTML (3.92%)
Total Downloads
2,848,969
Last Day
1,022
Last Week
25,991
Last Month
114,781
Last Year
1,288,574
MIT License
180 Stars
117 Commits
44 Forks
3 Watchers
10 Branches
7 Contributors
Updated on May 16, 2025
Minified
Minified + Gzipped
Latest Version
1.3.3
Package Id
react-simple-pull-to-refresh@1.3.3
Unpacked Size
36.55 kB
Size
6.85 kB
File Count
11
NPM Version
6.14.15
Node Version
14.18.0
Cumulative downloads
Total Downloads
Last Day
5%
1,022
Compared to previous day
Last Week
-10.6%
25,991
Compared to previous week
Last Month
3.7%
114,781
Compared to previous month
Last Year
68.3%
1,288,574
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.3: Update package.json peerDependencies to support react 18 - (From: @mjauernig)
1.3.2: Fix build issue encountered with 1.3.1
1.3.1: Fix issue preventing fixed elements to work properly - (From: @ManuDoni)
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
branch protection not enabled on development/release branches
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
57 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-26
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