Gathering detailed insights and metrics for react-simple-pull-to-refresh-i
Gathering detailed insights and metrics for react-simple-pull-to-refresh-i
Gathering detailed insights and metrics for react-simple-pull-to-refresh-i
Gathering detailed insights and metrics for react-simple-pull-to-refresh-i
npm install react-simple-pull-to-refresh-i
Typescript
Module System
Node Version
NPM Version
32.9
Supply Chain
78.5
Quality
75
Maintenance
100
Vulnerability
100
License
TypeScript (52.1%)
JavaScript (34.11%)
CSS (4.97%)
SCSS (4.89%)
HTML (3.92%)
Total Downloads
188
Last Day
1
Last Week
2
Last Month
3
Last Year
44
173 Stars
117 Commits
41 Forks
3 Watching
10 Branches
7 Contributors
Latest Version
1.3.0
Package Id
react-simple-pull-to-refresh-i@1.3.0
Unpacked Size
7.14 kB
Size
2.73 kB
File Count
3
NPM Version
8.5.3
Node Version
16.13.1
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
100%
2
Compared to previous week
Last month
0%
3
Compared to previous month
Last year
-17%
44
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
52 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-16
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