Nascent Political Miscreant

    react-native-hardskilled-double-tap

    1.0.0 • Public • Published

    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

    Install

    npm i react-native-hardskilled-double-tap

    DownloadsWeekly Downloads

    16

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • hinex