rc-swipeout
Advanced tools
Comparing version 1.3.7 to 1.3.8
@@ -8,4 +8,2 @@ /// <reference types="react" /> | ||
disabled: boolean; | ||
left: never[]; | ||
right: never[]; | ||
onOpen(): void; | ||
@@ -12,0 +10,0 @@ onClose(): void; |
@@ -68,6 +68,4 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
style = _a.style, | ||
_a$left = _a.left, | ||
left = _a$left === undefined ? [] : _a$left, | ||
_a$right = _a.right, | ||
right = _a$right === undefined ? [] : _a$right, | ||
left = _a.left, | ||
right = _a.right, | ||
onOpen = _a.onOpen, | ||
@@ -77,9 +75,9 @@ onClose = _a.onClose, | ||
restProps = __rest(_a, ["disabled", "autoClose", "style", "left", "right", "onOpen", "onClose", "children"]); | ||
var customLeft = left.map(function (btn) { | ||
var customLeft = left && left.map(function (btn) { | ||
return _this2.renderCustomButton(btn); | ||
}); | ||
var customRight = right.map(function (btn) { | ||
var customRight = right && right.map(function (btn) { | ||
return _this2.renderCustomButton(btn); | ||
}); | ||
return left.length || right.length ? React.createElement( | ||
return customLeft || customRight ? React.createElement( | ||
Swipe, | ||
@@ -102,4 +100,2 @@ { autoClose: autoClose, left: customLeft, right: customRight, style: style, onOpen: onOpen, onClose: onClose, disabled: disabled }, | ||
disabled: false, | ||
left: [], | ||
right: [], | ||
onOpen: function onOpen() {}, | ||
@@ -106,0 +102,0 @@ onClose: function onClose() {} |
# History | ||
# 1.3.8 | ||
- fixed: only one hand can be swiped if left or right is null. | ||
# ~1.3.7 | ||
@@ -4,0 +8,0 @@ |
@@ -8,4 +8,2 @@ /// <reference types="react" /> | ||
disabled: boolean; | ||
left: never[]; | ||
right: never[]; | ||
onOpen(): void; | ||
@@ -12,0 +10,0 @@ onClose(): void; |
@@ -98,6 +98,4 @@ 'use strict'; | ||
style = _a.style, | ||
_a$left = _a.left, | ||
left = _a$left === undefined ? [] : _a$left, | ||
_a$right = _a.right, | ||
right = _a$right === undefined ? [] : _a$right, | ||
left = _a.left, | ||
right = _a.right, | ||
onOpen = _a.onOpen, | ||
@@ -107,9 +105,9 @@ onClose = _a.onClose, | ||
restProps = __rest(_a, ["disabled", "autoClose", "style", "left", "right", "onOpen", "onClose", "children"]); | ||
var customLeft = left.map(function (btn) { | ||
var customLeft = left && left.map(function (btn) { | ||
return _this2.renderCustomButton(btn); | ||
}); | ||
var customRight = right.map(function (btn) { | ||
var customRight = right && right.map(function (btn) { | ||
return _this2.renderCustomButton(btn); | ||
}); | ||
return left.length || right.length ? _react2['default'].createElement( | ||
return customLeft || customRight ? _react2['default'].createElement( | ||
_reactNativeSwipeout2['default'], | ||
@@ -131,4 +129,2 @@ { autoClose: autoClose, left: customLeft, right: customRight, style: style, onOpen: onOpen, onClose: onClose, disabled: disabled }, | ||
disabled: false, | ||
left: [], | ||
right: [], | ||
onOpen: function onOpen() {}, | ||
@@ -135,0 +131,0 @@ onClose: function onClose() {} |
{ | ||
"name": "rc-swipeout", | ||
"version": "1.3.7", | ||
"version": "1.3.8", | ||
"description": "swipe out ui component for react(web and react-native)", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
43801
1003