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 - npm Package Compare versions

Comparing version 0.0.1 to 1.0.0

lib/index.d.ts

2

HISTORY.md

@@ -6,2 +6,2 @@ # History

-
- inspired by react-native
{
"name": "rc-touchable",
"version": "0.0.1",
"description": "",
"version": "1.0.0",
"description": "React Touchable Component",
"keywords": [
"react",
"touchable",
"component"
],

@@ -16,3 +19,3 @@ "homepage": "http://github.com/react-component/touchable",

},
"licenses": "MIT",
"license": "MIT",
"files": [

@@ -26,3 +29,3 @@ "lib"

"scripts": {
"watch-tsc": "rc-tools run watch-tsc",
"compile": "rc-tools run compile",
"build": "rc-tools run build",

@@ -33,4 +36,2 @@ "gh-pages": "rc-tools run gh-pages",

"lint": "rc-tools run lint --no-js-lint",
"karma": "rc-tools run karma",
"saucelabs": "rc-tools run saucelabs",
"test": "rc-tools run test",

@@ -56,4 +57,5 @@ "chrome-test": "rc-tools run chrome-test",

"dependencies": {
"babel-runtime": "6.x"
"babel-runtime": "6.x",
"object-assign": "^4.1.0"
}
}
# rc-touchable
---
react touchable component
react touchable component. inspired by react-native.

@@ -9,3 +9,2 @@ [![NPM version][npm-image]][npm-url]

[![Test coverage][coveralls-image]][coveralls-url]
[![gemnasium deps][gemnasium-image]][gemnasium-url]
[![npm download][download-image]][download-url]

@@ -33,2 +32,6 @@

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

@@ -38,2 +41,38 @@

<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="width: 100px;">name</th>
<th style="width: 50px;">type</th>
<th style="width: 50px;">default</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>onPress</td>
<td>()=>void</td>
<td></td>
<td>onPress/onTap callback</td>
</tr>
<tr>
<td>onLongPress</td>
<td>()=>void</td>
<td></td>
<td>onLongPress/onLongTap callback</td>
</tr>
<tr>
<td>activeClassName</td>
<td>string</td>
<td></td>
<td>className applied to child when active</td>
</tr>
<tr>
<td>activeStyle</td>
<td>object</td>
<td></td>
<td>style applied to child when active</td>
</tr>
</tbody>
</table>

@@ -40,0 +79,0 @@

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