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

rc-swipeout

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-swipeout - npm Package Compare versions

Comparing version 1.3.7 to 1.3.8

2

es/Swipeout.native.d.ts

@@ -8,4 +8,2 @@ /// <reference types="react" />

disabled: boolean;
left: never[];
right: never[];
onOpen(): void;

@@ -12,0 +10,0 @@ onClose(): void;

14

es/Swipeout.native.js

@@ -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": [

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