rc-touchable
Advanced tools
Comparing version 0.0.1 to 1.0.0
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
25568
6
0
0
516
0
110
2
+ Addedobject-assign@^4.1.0
+ Addedobject-assign@4.1.1(transitive)