Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-touchable

Package Overview
Dependencies
Maintainers
1
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

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1K
decreased by-76.97%
Maintainers
1
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

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 30 Nov 2016

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