Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

touch-position-react

Makes (https://github.com/ethanselzer/react-touch-position.git) compatible with react versions >v15.5, >v16.

react-touch, react-touchmove, react-touch-drag, react-touch-pan, react-touch-coordinates, react-tap-position, react-position, react-point, react-pan, react-tap, touch-pan-position, touch-position, touch-coordinates, touchmove

readme

This makes https://github.com/ethanselzer/react-touch-position compatible with React v16, v15.5

To install: npm i touch-position-react

For further details on documentation and use please visit the origional repo: https://github.com/ethanselzer/react-touch-position

The reason for this new npm package is, right now if react-touch-position is included on an import, upon start up it throws errors because PropTypes needs a separate import + npm install of 'prop-types' as of React 15.5. Also using React.createClass was deprecated in React 16 and needs a separate require statement + npm install of 'create-react-class' to be used.