react-native-swipeout
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -6,9 +6,9 @@ { | ||
"scripts": { | ||
"start": "node_modules/react-native/packager/packager.sh" | ||
, "latest": "npm install react-native-swipeout@* --save" | ||
"start": "node_modules/react-native/packager/packager.sh", | ||
"latest": "npm install react-native-swipeout@* --save" | ||
}, | ||
"dependencies": { | ||
"react-native": "^0.4.4", | ||
"react-native-swipeout": "^0.3.1" | ||
"react-native-swipeout": "^0.3.3" | ||
} | ||
} |
@@ -94,3 +94,3 @@ var React = require('react-native') | ||
if (this.state.exposed) var posX = gestureState.dx - this.state.btnsWidth | ||
if (this.state.swiping) this.setState({ contentPos: Math.min(posX, 0) }) | ||
if (this.state.swiping) this.setState({ contentPos: Math.min(posX, 0) }) | ||
} | ||
@@ -131,3 +131,3 @@ , _handlePanResponderEnd: function(e: Object, gestureState: Object) { | ||
return lowerLimit - Math.pow(lowerLimit - value, 0.85); | ||
} | ||
} | ||
return value; | ||
@@ -171,3 +171,3 @@ } | ||
return ( | ||
<View style={styles.swipeout}> | ||
<View style={styleSwipeout}> | ||
<View ref="swipeoutContent" style={styleSwipeoutContent} {...self._panResponder.panHandlers}> | ||
@@ -174,0 +174,0 @@ {self.props.children} |
{ | ||
"name": "react-native-swipeout", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "iOS-style swipeout buttons behind component", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -53,11 +53,2 @@ # react-native-swipeout | ||
* [ ] prevent scroll when swiping | ||
* [ ] close open other swipeouts when initiating swipeout | ||
* [ ] custom button component support | ||
* [ ] add overswipe to trigger action | ||
* [ ] add prop to extend swipeout buttons to 100% width | ||
* [ ] add swipeout from left support | ||
* [ ] add different examples in example app | ||
* [ ] add comments to index.js | ||
* [ ] fix swipeout width on device rotation | ||
* [ ] update sample gif | ||
[https://github.com/dancormier/react-native-swipeout/issues](https://github.com/dancormier/react-native-swipeout/issues) |
61540
53