fix:fix drag style erro

This commit is contained in:
sh
2018-10-02 21:09:45 +08:00
parent bfd6b47b2f
commit 70e0125fe2
2 changed files with 2 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
"sortable",
"grid"
],
"version": "1.0.1",
"version": "1.0.2",
"description": "A draggable grid for react native",
"main": "built/index.js",
"types": "src/index.ts",

View File

@@ -20,11 +20,10 @@ export class Block extends React.Component<BlockProps>{
public render() {
return (
<Animated.View
style={[styles.blockContainer, this.props.style]}
style={[styles.blockContainer, this.props.style, this.props.dragStartAnimationStyle]}
{...this.props.panHandlers}
>
<Animated.View
style={this.props.dragStartAnimationStyle}
>
<TouchableWithoutFeedback
onPress={this.props.onPress}