Touchable / draggable react component with an easy to use API
$ npm install react-touchable-component --save
import Touchable from 'react-touchable-component'
..
render () {
return (
<Touchable>
{({x, y}) => (
<div style={{transform: `translate3d(${x}px, ${y}px, 0)`}}>
Yo, Im moving around
</div>
)}
</Touchable>
)
}
MIT © Jack Hanford