rc-touchable
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -1,6 +0,11 @@ | ||
import _extends from 'babel-runtime/helpers/extends'; | ||
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; | ||
import _createClass from 'babel-runtime/helpers/createClass'; | ||
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; | ||
import _inherits from 'babel-runtime/helpers/inherits'; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } | ||
// inspired by react-native | ||
@@ -7,0 +12,0 @@ import React from 'react'; |
@@ -1,2 +0,3 @@ | ||
import _extends from 'babel-runtime/helpers/extends'; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
function PressEvent(nativeEvent) { | ||
@@ -3,0 +4,0 @@ var _this = this; |
@@ -7,22 +7,6 @@ 'use strict'; | ||
var _extends2 = require('babel-runtime/helpers/extends'); | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _extends3 = _interopRequireDefault(_extends2); | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); | ||
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); | ||
var _createClass2 = require('babel-runtime/helpers/createClass'); | ||
var _createClass3 = _interopRequireDefault(_createClass2); | ||
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn'); | ||
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); | ||
var _inherits2 = require('babel-runtime/helpers/inherits'); | ||
var _inherits3 = _interopRequireDefault(_inherits2); | ||
var _react = require('react'); | ||
@@ -42,2 +26,9 @@ | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // inspired by react-native | ||
function keyMirror(obj) { | ||
@@ -48,4 +39,3 @@ Object.keys(obj).forEach(function (k) { | ||
return obj; | ||
} // inspired by react-native | ||
} | ||
function copy(from, list) { | ||
@@ -206,8 +196,8 @@ var to = {}; | ||
var Touchable = function (_React$Component) { | ||
(0, _inherits3['default'])(Touchable, _React$Component); | ||
_inherits(Touchable, _React$Component); | ||
function Touchable() { | ||
(0, _classCallCheck3['default'])(this, Touchable); | ||
_classCallCheck(this, Touchable); | ||
var _this = (0, _possibleConstructorReturn3['default'])(this, (Touchable.__proto__ || Object.getPrototypeOf(Touchable)).apply(this, arguments)); | ||
var _this = _possibleConstructorReturn(this, (Touchable.__proto__ || Object.getPrototypeOf(Touchable)).apply(this, arguments)); | ||
@@ -294,3 +284,3 @@ _this.state = { | ||
(0, _createClass3['default'])(Touchable, [{ | ||
_createClass(Touchable, [{ | ||
key: 'componentDidMount', | ||
@@ -641,3 +631,3 @@ value: function componentDidMount() { | ||
if (activeStyle) { | ||
style = (0, _extends3['default'])({}, style, activeStyle); | ||
style = _extends({}, style, activeStyle); | ||
} | ||
@@ -651,3 +641,3 @@ if (activeClassName) { | ||
} | ||
return _react2['default'].cloneElement(child, (0, _extends3['default'])({ className: className, | ||
return _react2['default'].cloneElement(child, _extends({ className: className, | ||
style: style }, events)); | ||
@@ -658,2 +648,3 @@ } | ||
}]); | ||
return Touchable; | ||
@@ -660,0 +651,0 @@ }(_react2['default'].Component); |
@@ -7,10 +7,5 @@ 'use strict'; | ||
var _extends2 = require('babel-runtime/helpers/extends'); | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _extends3 = _interopRequireDefault(_extends2); | ||
exports.shouldFirePress = shouldFirePress; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
function PressEvent(nativeEvent) { | ||
@@ -30,3 +25,3 @@ var _this = this; | ||
} | ||
PressEvent.prototype = (0, _extends3['default'])({}, PressEvent.prototype, { | ||
PressEvent.prototype = _extends({}, PressEvent.prototype, { | ||
preventDefault: function preventDefault() { | ||
@@ -33,0 +28,0 @@ this.nativeEvent.preventDefault(); |
{ | ||
"name": "rc-touchable", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "React Touchable Component", | ||
@@ -34,3 +34,3 @@ "keywords": [ | ||
"start": "rc-tools run server", | ||
"pub": "rc-tools run pub --babel-runtime", | ||
"pub": "rc-tools run pub", | ||
"lint": "rc-tools run lint --no-js-lint", | ||
@@ -37,0 +37,0 @@ "test": "rc-test run test", |
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
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
67438
1525