# rc-touchable --- react touchable component. inspired by react-native. [![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][coveralls-image]][coveralls-url] [![npm download][download-image]][download-url] [npm-image]: http://img.shields.io/npm/v/rc-touchable.svg?style=flat-square [npm-url]: http://npmjs.org/package/rc-touchable [travis-image]: https://img.shields.io/travis/react-component/touchable.svg?style=flat-square [travis-url]: https://travis-ci.org/react-component/touchable [coveralls-image]: https://img.shields.io/coveralls/react-component/touchable.svg?style=flat-square [coveralls-url]: https://coveralls.io/r/react-component/touchable?branch=master [gemnasium-image]: http://img.shields.io/gemnasium/react-component/touchable.svg?style=flat-square [gemnasium-url]: https://gemnasium.com/react-component/touchable [node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square [node-url]: http://nodejs.org/download/ [download-image]: https://img.shields.io/npm/dm/rc-touchable.svg?style=flat-square [download-url]: https://npmjs.org/package/rc-touchable ## Install [![rc-touchable](https://nodei.co/npm/rc-touchable.png)](https://npmjs.org/package/rc-touchable) ## Usage ```js import Touchable from 'rc-touchable'; ReactDOM.render(
click
, container); ``` ## API
name type default description
disabled boolean false
onPress ()=>void onPress/onTap callback
onLongPress ()=>void onLongPress/onLongTap callback
activeClassName string className applied to child when active
activeStyle object style applied to child when active
activeStopPropagation object stop child active propagate to parent
## Development ``` npm install npm start ``` ## Example http://localhost:8007/examples/ online example: http://react-component.github.io/touchable/ ## Test Case ``` npm test npm run chrome-test ``` ## Coverage ``` npm run coverage ``` open coverage/ dir ## License rc-touchable is released under the MIT license.