Skip to content

Commit

Permalink
Deprecate plugin
Browse files Browse the repository at this point in the history
Closes #121
  • Loading branch information
s0meone committed May 29, 2018
1 parent f7ed5c5 commit f0c34c2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# DEPRECATED

React 16.4 removes a lot of internals (#121) this plugin depends on and will break the plugin.

Since the problem it solves [has been fixed](https://developers.google.com/web/updates/2013/12/300ms-tap-delay-gone-away) in most browsers by now you should migrate away from this plugin.

---

# Introduction
You've probably heard of [iOS's dreaded 300ms tap delay](http://updates.html5rocks.com/2013/12/300ms-tap-delay-gone-away). 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 available](https://github.com/facebook/react/issues/436) [until 1.0](https://github.com/facebook/react/pull/1170).~~

Expand All @@ -11,7 +19,7 @@ Verify if you need this plugin for the browsers you need to support.

## Installation

Latest:
Compatible with React >= 16.0 && < 16.4:
```sh
$ npm i --save react-tap-event-plugin
```
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-tap-event-plugin",
"version": "3.0.2",
"version": "3.0.3",
"description": "Facebook's TapEventPlugin, temporarily available on npm until its made public in their repo",
"main": "src/injectTapEventPlugin.js",
"files": [
Expand All @@ -22,8 +22,8 @@
"react-tap-event-plugin"
],
"peerDependencies": {
"react": "^16.0.0-0",
"react-dom": "^16.0.0-0"
"react": "^16.0.0-0 < 16.4.0",
"react-dom": "^16.0.0-0 < 16.4.0"
},
"dependencies": {
"fbjs": "^0.8.6"
Expand Down

0 comments on commit f0c34c2

Please sign in to comment.