All Projects → dwicao → react-native-double-click

dwicao / react-native-double-click

Licence: other
A Component Wrapper for Double Click/Tap

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-native-double-click

Ybattributetexttapaction
一行代码添加文本点击事件/a fast way to implement click event text
Stars: ✭ 430 (+923.81%)
Mutual labels:  tap, click
JHTapTextView
Tap TextView,Text Tap,文本点击
Stars: ✭ 23 (-45.24%)
Mutual labels:  tap, click
Click-Counter-Bot
A telegram bot module for how to count total clicks on button.
Stars: ✭ 23 (-45.24%)
Mutual labels:  click
ng-qt
Build extremely powerful and efficient native cross-platform desktop applications using Angular and NodeGUI
Stars: ✭ 14 (-66.67%)
Mutual labels:  native
srtdroid
Secure Reliable Transport (SRT) Protocol for Android
Stars: ✭ 35 (-16.67%)
Mutual labels:  native
griffin-app-opensource
The Axway Griffin App goes open source!
Stars: ✭ 19 (-54.76%)
Mutual labels:  native
exch
a command-line tool to see currency exchange rates
Stars: ✭ 20 (-52.38%)
Mutual labels:  click
ip2socks
ip flow to socks, support tun and tap.
Stars: ✭ 35 (-16.67%)
Mutual labels:  tap
granblue-automation-android
Educational application written in Kotlin aimed at automating user-defined workflows for the mobile game, "Granblue Fantasy", using MediaProjection, AccessibilityService, and OpenCV.
Stars: ✭ 26 (-38.1%)
Mutual labels:  native
titanium-turbo
Axway Amplify module that adds some enhancements for Appcelerator Titanium Alloy
Stars: ✭ 15 (-64.29%)
Mutual labels:  native
titanium-paypal
💰 Use the PayPal iOS-SDK 2.x with Titanium Mobile.
Stars: ✭ 22 (-47.62%)
Mutual labels:  native
react-native-tracking-transparency
🕵️ A React Native Library for interacting with the tracking API from iOS 14.
Stars: ✭ 149 (+254.76%)
Mutual labels:  native
webviewhs
🌐 A Haskell binding to the webview library created by Serge Zaitsev.
Stars: ✭ 109 (+159.52%)
Mutual labels:  native
Corium
Corium is a modern scripting language which combines simple, safe and efficient programming.
Stars: ✭ 18 (-57.14%)
Mutual labels:  native
SkylinkSDK-iOS-Sample
Temasys SkylinkSDK for iOS - Sample App - Objective C
Stars: ✭ 16 (-61.9%)
Mutual labels:  native
macos-receiver
A MacOS TabBar (StatusBar) application that securely receives one-time passwords (OTPs) that you tapped in Raivo for iOS.
Stars: ✭ 44 (+4.76%)
Mutual labels:  native
MysteryCrate
PLUGIN ARCHIVED. USE https://github.com/DaPigGuy/PiggyCrates instead!
Stars: ✭ 30 (-28.57%)
Mutual labels:  tap
SPStorkController
Now playing controller from Apple Music, Mail & Podcasts Apple's apps.
Stars: ✭ 2,515 (+5888.1%)
Mutual labels:  native
kotlinx-serialization-msgpack
MsgPack support for kotlinx.serialization -- msgpack.org[kotlinx.serialization]
Stars: ✭ 17 (-59.52%)
Mutual labels:  native
focus-outside
📦 一个很棒的 clickOutside 库,它解决了 iframe 无法触发 clickOutside 的问题,并且它支持分组绑定处理。A good clickOutside library, which solves the problem that iframe cannot trigger clickOutside, and it supports grouping binding processing.
Stars: ✭ 74 (+76.19%)
Mutual labels:  click

react-native-double-click

A Component Wrapper for Double Click/Tap, made for React Native, works on both Android and iOS.

Installation

  • npm install --save react-native-double-click

Usage

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

export default class doubleClicker extends Component {
  constructor() {
    super();

    this.handleClick = this.handleClick.bind(this);
  }

  handleClick() {
    Alert.alert('This is awesome \n Double tap succeed');
  }

  render() {
    return (
      <View style={{ flex: 1, marginTop: 50 }}>
        <Text style={{ fontSize: 20 }}>
          Welcome to React Native!
        </Text>
        <DoubleClick onClick={this.handleClick}>
          <Text style={{ fontSize: 26 }}>
            Please tap me twice!
          </Text>
        </DoubleClick>
      </View>
    );
  }
}

Props

Property Type Default Description
delay number 300 (in milliseconds) How fast double click/tap be pressed (number below 200 might not worked)
radius number 20 Radius for click/tap
onClick function () => Alert.alert('Double Tap Succeed') Execute function after double click/tap be pressed

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].