Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Latest commit

History

2,779 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Introduction

You've probably heard of iOS's dreaded 300ms tap delay. React's onClick attribute falls prey to it. Facebook's working on a solution in the form of TapEventPlugin, but it won't be made availableuntil 1.0.

If you're reading this, you're probably working on a project that can't wait until they figure out how they want to publish it. This repo is for you.

When Facebook solves #436 and #1170, this repo will disappear.

Usage

varinjectTapEventPlugin=require("react-tap-event-plugin");injectTapEventPlugin();

Example

varReact=require('react'),injectTapEventPlugin=require("react-tap-event-plugin");injectTapEventPlugin();varMain=React.createClass({render: function(){return<buttononTouchTap={this._handleTouchTap}>Tap Me</button>},_handleTouchTap: function(){alert('Tap');}});React.render(<Main/>,document.body);

About

Instant TapEvents for React

Resources

Stars

1 star

Watchers

9 watching

Forks

Releases

Packages

Contributors

Languages