Detalhes do pacote

double-click-react-native

reizhafajrian39MIT0.1.8

button double click for react-native

react-native, ios, android, double click

readme (leia-me)

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