Socket
Socket
Sign inDemoInstall

rc-touchable

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-touchable

React Touchable Component


Version published
Weekly downloads
6.1K
increased by38.25%
Maintainers
2
Weekly downloads
 
Created
Source

rc-touchable


react touchable component. inspired by react-native.

NPM version build status Test coverage npm download

Install

rc-touchable

Usage

import Touchable from 'rc-touchable';
ReactDOM.render(<Touchable onPress={onPress} activeClassName="active">
<div>click</div>
</Touchable>, container);

API

nametypedefaultdescription
disabledbooleanfalse
onPress()=>voidonPress/onTap callback
onLongPress()=>voidonLongPress/onLongTap callback
activeClassNamestringclassName applied to child when active
activeStyleobjectstyle applied to child when active
activeStopPropagationobjectstop 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.

Keywords

FAQs

Package last updated on 26 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc