Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@planet/react-scroll-view
Advanced tools
A scroll view React component optimized for large numbers of items.
First,
npm install @planet/react-scroll-view
Then in your code you can
var ScrollView = require('@planet/react-scroll-view')
Both a .less
and a compiled .css
file are provided with the module.
var itemHeight = 50;
var itemStyle = {
height: itemHeight
}
<ScrollView
itemCount={50}
itemHeight={itemHeight}
itemAtPosition={function(position) {
return (
<div className="my-item" style={itemStyle}>I am number {position}</div>
)
}}/>
The supported properties are:
itemCount
: Required. the number of items in the scroll viewitemHeight
: Required. the height of each item. All items must have the same height.itemAtPosition
: Required. a function that, when invoked, will return the jsx representing the item at the specified positionitemPreloadCount
: how many items are loaded outside the visible area of the scroll view. Defaults to 10nativeScrollbar
: a boolean value. if set to true, the native scrollbar will be used instead of the custom one. Defaults to false.onScroll
: optional callback that will be invoked on every scroll event.FAQs
A Rect Scroll View component
The npm package @planet/react-scroll-view receives a total of 1 weekly downloads. As such, @planet/react-scroll-view popularity was classified as not popular.
We found that @planet/react-scroll-view demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.