
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
react-view-tracker
Advanced tools
[![npm package][npm-badge]][npm] ![Module formats][module-formats]
Simple react component that watch element when enters or leaves the browser viewport.
Add react-view-tracker
dependency
yarn add react-view-tracker
npm install react-view-tracker --save
import ViewTracker from 'react-view-tracker'
<ViewTracker
onShow={(entry)=> {console.log(entry)})}
>
<Content />
</ViewTracker>
Name | Type | Default | Required | Description |
---|---|---|---|---|
onShow | Function | null | false | When element visible in the view port this function will be called with entry. |
onHide | Function | null | false | When element visible then not visible in the view port this function will be called with entry |
onStartObserving | Function | null | false | When component did load it will start observing and call this function with container element |
onStopObserving | Function | null | false | When component un mount it will stop observing and call this function with container element |
setRootContainer | Function | null | false | The Function should return Element that is used as the viewport for checking visibility of the target. |
once | boolean | false | false | Only trigger this method once |
visiblePercentage | number | number[] | 1 | false | Number between 0 and 1 indicating the percentage that should be visible before triggering. Can also be an array of numbers, to create multiple trigger points. |
offset | object | {left: 0, right: 0, top: 0, bottom: 0} | false | Margin around the root. |
This project is licensed under the MIT License - see the LICENCE.md file for details
FAQs
[![npm package][npm-badge]][npm] ![Module formats][module-formats]
The npm package react-view-tracker receives a total of 4 weekly downloads. As such, react-view-tracker popularity was classified as not popular.
We found that react-view-tracker 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.