touch-position-react

2.0.2 • Public • Published

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.

/touch-position-react/

    Package Sidebar

    Install

    npm i touch-position-react

    Weekly Downloads

    1

    Version

    2.0.2

    License

    MIT

    Unpacked Size

    4.37 kB

    Total Files

    3

    Last publish

    Collaborators

    • cranberrymuffin