Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@patlux/react-pull-to-refresh
Advanced tools
npm install react-pull-to-refresh -S
A pull to refresh component for the web.
Based on Andy Peatling's Pull to Refresh for the Web
Your refresh handler function takes in resolve
and reject
to tell the PullToRefresh component when it's finished.
handleRefresh(resolve, reject) {
// do some async code here
if (success) {
resolve();
} else {
reject();
}
}
Where you want to render the component:
<ReactPullToRefresh
onRefresh={this.handleRefresh}
className="your-own-class-if-you-want"
style={{
textAlign: 'center'
}}>
<h3>Pull down to refresh</h3>
<div>{items}</div>
<div>etc.</div>
</ReactPullToRefresh>
Use the CSS from the example or from here as a starting point.
PropTypes
PropTypes.func.isRequired
PropTypes.element
<span className="genericon genericon-next"></span>
PropTypes.element
<div className="loading">
<span className="loading-ptr-1"></span>
<span className="loading-ptr-2"></span>
<span className="loading-ptr-3"></span>
</div>
PropTypes.bool
PropTypes.string
PropTypes.object
PropTypes.number
70
PropTypes.number
2.5
PropTypes.object
FAQs
A React component for pull to refresh on the web.
The npm package @patlux/react-pull-to-refresh receives a total of 1 weekly downloads. As such, @patlux/react-pull-to-refresh popularity was classified as not popular.
We found that @patlux/react-pull-to-refresh demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.