react-native-hardskilled-double-tap
v1.0.0
Published
React Native Double Tap component
Downloads
3
Maintainers
Readme
Double Tap for React Native
Installation
npm install react-native-hardskilled-double-tap --save
Example
import React, { Component } from 'react'
import DoubleTap from 'react-native-hardskilled-double-tap';
import { Text, TouchableNativeFeedback } from 'react-native'
export default class Example extends Component {
constructor(props) {
super(props);
}
handler() {
console.warn('DoubleTap clicked!');
}
render() {
return (
<DoubleTap
onPress={this.handler} // Handler after double tap on button
delay={500} // Delay between tapas
component={TouchableNativeFeedback} // Custom component with onPress (default: TouchableOpacity)
>
<Text>Click me pls!</Text>
</DoubleTap>
);
}
}