react-touchable-component
v0.1.0
Published
Draggable react drawer
Downloads
2
Maintainers
Readme
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