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 i -S 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} puzzleSize={60} width={width - 40} onVerify={verify => this.setState({ verify })}
text={verify ? "VERIFICADO" : "Deslice para verificar"} puzzleColor="#01579B" borderColor={verify ? '#1DE9B6' : '#01579B'}
textColor={verify ? '#1DE9B6' : '#01579B'} backgroundColor="#fff"
/>
{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 swiper-verify |
puzzleSize (required) | number | required | the puzzle zise of swiper-verify |
puzzleSize (required) | number | required | the puzzle zise of swiper-verify |
backgroundColor (optional) | string | #F50057 | background color |
puzzleColor (optional) | string | #D50000 | puzzle background color |
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 was verify |
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.