Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
rn-swipeout
Advanced tools
iOS-style swipeout buttons that appear from behind a component
Animated
library
react-tween-state
dependency (#49, #73)style
onPress
, style
, underlayColor
onClose
prop (#32)type
propscroll
prop (considering Animated
library)close
(now open
) prop (#54)overswipe
button prop (#10)npm install --save react-native-swipeout
See index.ios.js for a more detailed example. See the Wiki usage tips.
var Swipeout = require('react-native-swipeout')
// Buttons
var swipeoutBtns = [
{
text: 'Button'
}
]
// Swipeout component
<Swipeout right={swipeoutBtns}>
<View>
<Text>Swipe me left</Text>
</View>
</Swipeout>
All props are optional.
Prop | Type | Default | Description |
---|---|---|---|
autoClose | bool | false | auto close on button press |
open | string/bool | "left", "right", or false | |
left | array | [] | swipeout buttons on left |
onClose | func | function when buttons are hidden | |
onOpen | func | function when buttons are exposed | |
props | object | null | pass props to swipeout (ex: style ) |
right | array | [] | swipeout buttons on right |
scroll | func | prevent parent scroll |
Prop | Type | Default | Description |
---|---|---|---|
component | string | null | pass custom component to button |
props | object | null | pass props to button (ex: onPress , style , underlayColor ) |
text | string | 'Click Me' | text |
type | string | null | danger /delete , primary , secondary , success |
FAQs
iOS-style swipeout buttons behind component
We found that rn-swipeout 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.