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.
react-native-swipe-verify
Advanced tools
A small componenent to Swipe Verify
npm install --save react-native-swipe-verify
If the RNSwipeVerify is inside another component with PanResponder the RNSwipeVerify will be cancelled.
import React, { Component } from 'react';
import {
View,
TouchableOpacity, Text,
Dimensions
} from 'react-native';
const { width } = Dimensions.get('window')
import RNSwipeVerify from 'react-native-swipe-verify'
export default class App extends Component {
constructor(props) {
super(props)
this.state = {
verify: false
}
}
render() {
const { verify } = this.state
return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<RNSwipeVerify
ref={ref => this.swipeVerify = ref}
buttonSize={60}
width={width - 40}
onVerify={verify => this.setState({ verify })}
text={verify ? "VERIFIED" : "Slide to verify"}
buttonColor="#01579B"
borderColor={verify ? '#1DE9B6' : '#01579B'}
textColor={verify ? '#1DE9B6' : '#01579B'}
backgroundColor="#fff"
icon={require('../img/swipe.png')}
/>
{this.state.verify && (<TouchableOpacity onPress={() => this.swipeVerify.reset(false)} style={{ marginTop: 30 }}>
<Text style={{ padding: 10, color: '#0091EA', fontSize: 25 }}>RESET</Text>
</TouchableOpacity>)}
</View>
);
}
}
name | type | default | description |
---|---|---|---|
width (required) | number | required | the width of swipe-verify |
buttonSize (required) | number | required | the button (Icon) size of swipe-verify |
backgroundColor (optional) | string | #F50057 | background color |
buttonColor (optional) | string | #D50000 | button background color |
icon (optional) | image | arrow icon | image to button (only .png or .jpg). You can use icon={require('../img/swipe.png')} or icon={{ uri: 'http://images.com/swipe-icon.jpg'}} |
text (optional) | string | #D50000 | text to show |
textColor (optional) | string | #FFFFFF | text color |
borderColor (optional) | string | #D50000 | border color |
name | arguments | notes |
---|---|---|
onVerify (required) | bool | listener to check if the swipe is verified (user has completed swipe) |
name | arguments | notes |
---|---|---|
reset(bool) (required) | bool (animate) | reset the swipe-verify to default values |
FAQs
RNSwipeVerify =========
The npm package react-native-swipe-verify receives a total of 162 weekly downloads. As such, react-native-swipe-verify popularity was classified as not popular.
We found that react-native-swipe-verify 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
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.