代码拉取完成,页面将自动刷新
react touchable component. inspired by react-native.
import Touchable from 'rc-touchable';
ReactDOM.render(<Touchable onPress={onPress} activeClassName="active">
<div>click</div>
</Touchable>, container);
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 |
npm install
npm start
http://localhost:8007/examples/
online example: http://react-component.github.io/touchable/
npm test
npm run chrome-test
npm run coverage
open coverage/ dir
rc-touchable is released under the MIT license.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。