double-click-react-native
TypeScript icon, indicating that this package has built-in type declarations

0.1.8 • Public • Published

double-click-react-native

button double click for react-native

Installation

npm install double-click-react-native

Usage

// ...

import React from 'react'
import { View, Text } from 'react-native'
import DoubleClick from "double-click-react-native";


function App() {
  return (
    <DoubleClick
      singleTap={() => {
        console.log('single tap');
      }}
      doubleTap={() => {
        console.log('double tap');
      }}
      delay={300}
      style={{
        backgroundColor: 'black',
      }}
    >
      <Text>Click</Text>
    </DoubleClick>
  );
}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

/double-click-react-native/

    Package Sidebar

    Install

    npm i double-click-react-native

    Weekly Downloads

    11

    Version

    0.1.8

    License

    MIT

    Unpacked Size

    15.9 kB

    Total Files

    9

    Last publish

    Collaborators

    • reizhafajrian