0.1.0 • Published 7 years ago

react-touchable-component v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

react-touchable-component

Draggable react component with an insanely easy to use API

Install

$ npm install react-touchable-component --save

Usage

import Touchable from 'react-touchable-component'

..

render () {
  return (
    <Touchable>
      {({x, y}) => (
        <div style={{transform: translateY(`${yDelta}px`)}}>
          Yo, Im moving around
        </div>
      )}
    </Touchable>
  )
}

License

MIT © Jack Hanford