@arlenwang/react-native-swipeout
Advanced tools
Comparing version 2.4.2 to 2.4.3
{ | ||
"name": "@arlenwang/react-native-swipeout", | ||
"version": "2.4.2", | ||
"version": "2.4.3", | ||
"description": "iOS-style swipeout buttons behind component", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -30,3 +30,3 @@ import tweenState from 'react-tween-state'; | ||
underlayColor: PropTypes.string, | ||
buttonWidth: PropTypes.number, | ||
buttonAddWidth: PropTypes.number, | ||
}, | ||
@@ -416,3 +416,3 @@ | ||
buttons.forEach((item,index)=>{ | ||
if(item.buttonWidth)addWidth +=item.buttonWidth | ||
if(item.buttonAddWidth)addWidth +=item.buttonAddWidth | ||
}) | ||
@@ -419,0 +419,0 @@ if(addWidth>0)style.left = style.left- addWidth; |
26544