1.0.0 • Published 6 years ago

react-native-hardskilled-double-tap v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Double Tap for React Native

Example

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>
        );
    }
}

Hire us via Upwork! | Our website