
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-swipe-khai-khai
Advanced tools
Brad Birdsall's Swipe.js as a React component.
Check out the demo from a mobile device (real or emulated).
npm install react swipe-js-iso react-swipe
import React from 'react'
import ReactDOM from 'react-dom';
import ReactSwipe from 'react-swipe';
class Carousel extends React.Component {
render() {
return (
<ReactSwipe className="carousel" swipeOptions={{continuous: false}}>
<div>PANE 1</div>
<div>PANE 2</div>
<div>PANE 3</div>
</ReactSwipe>
);
}
}
ReactDOM.render(
<Carousel />,
document.getElementById('app')
);
Source code of demo is available here.
swipeOptions: ?Object
- supports all original options from Swipe.js configstyle: ?Object
- object with 3 keys (see defaults):
container: ?Object
wrapper: ?Object
child: ?Object
className
, id
for root component are also supportedComponent proxies all Swipe.js instance methods.
See related issue.
In order for react-swipe
to know that it needs to be re-rendered, you should supply the key
property to the component. By setting the key
to the length
of the images that you pass into react-swipe
, re-rendering will take place when the images.length
differs from the previous render
pass:
<ReactSwipe key={images.length}>
{images}
</ReactSwipe>
MIT Licensed
FAQs
Brad Birdsall's Swipe.js, as a React component
The npm package react-swipe-khai-khai receives a total of 1 weekly downloads. As such, react-swipe-khai-khai popularity was classified as not popular.
We found that react-swipe-khai-khai 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.