
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
react-native-touch-gestures
Advanced tools
Native gestures in React Native
$ npm install react-native-touch-gestures --save
$ react-native link react-native-touch-gestures
Libraries
➜ Add Files to [your project's name]
node_modules
➜ react-native-touch-gestures
and add RNGGestures.xcodeproj
libRNGGestures.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
)<import Gestures from 'react-native-touch-gestures';
class Example extends Component {
render() {
return (
<View>
<Gestures.View // Wrap the view with the Gestures view that recognizes pinch
onPinch={this.onPinch}
onTap={this.onTap}
onPan={this.onPan}
>
<Text>hello world</Text>
</Gestures.View>
</View>
);
}
onPinch(event) {
console.log(
'onPinch -- ',
'gestureId: ', event.nativeEvent.gestureId, // unique id per gesture
'action: ', event.nativeEvent.action, // 'start' | 'change' | 'finish'
'scale: ', event.nativeEvent.scale
);
}
onTap(event) {
console.log(
'onTap -- ',
'gestureId: ', event.nativeEvent.gestureId // unique id per gesture
);
}
onPan(event) {
console.log(
'onPan -- ',
'gestureId: ', event.nativeEvent.gestureId,
'action: ', event.nativeEvent.action, // 'start' | 'change' | 'finish'
'x: ', event.nativeEvent.x,
'y: ', event.nativeEvent.y
);
}
}
FAQs
Native gesture recognizers in React Native
The npm package react-native-touch-gestures receives a total of 4 weekly downloads. As such, react-native-touch-gestures popularity was classified as not popular.
We found that react-native-touch-gestures demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.