
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
react-swipte-to-delete-ios
Advanced tools
A React Component that mimic the behavior of line deletion in iOS
A simple React component to reproduce the way iOS deletes an item in a list. Demo
Config very much insipred by this post
npm i --save react-swipe-to-delete-ios
yarn add react-swipe-to-delete-ios
import React from 'react'
import SwipeToDelete from 'react-swipe-to-delete-ios'
...
<SwipeToDelete
onDelete={handleDelete} // required
// optional
height={50} // default
transitionDuration={250} // default
deleteWidth={75} // default
deleteColor="rgba(252, 58, 48, 1.00)" // default
deleteText="Delete" // default
deleteComponent={<DeleteComponent/>} // not default
disabled={false} // default
rtl={false} // default
>
{children}
</SwipeToDelete>
Prop | Type | Default |
---|---|---|
onDelete | function | required |
height | number | 50 |
transitionDuration | number (ms) | 250 |
deleteWidth | number (px) | 75 |
deleteColor | string | "rgba(252, 58, 48, 1.00)" |
deleteText | string | "Delete" (deleteText or deleteComponent) |
deleteComponent | node | null (deleteText or deleteComponent) |
disabled | bool | false |
rtl | bool | false |
styled-components
, rewrite in Hooks, height
is now optional.FAQs
A React Component that mimic the behavior of line deletion in iOS
We found that react-swipte-to-delete-ios 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.