Skip to content

Instantly share code, notes, and snippets.

@0x1628
Created June 29, 2017 07:20
Show Gist options
  • Save 0x1628/ffb391394cab05989d74768c1d9700eb to your computer and use it in GitHub Desktop.
Save 0x1628/ffb391394cab05989d74768c1d9700eb to your computer and use it in GitHub Desktop.
Add touchTapEvent to React
const ReactInjection = require('react-dom/lib/ReactInjection')
const TapEventPlugin = require('react-dom/lib/TapEventPlugin')
ReactInjection.EventPluginHub.injectEventPluginsByName({
TapEventPlugin,
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment