mirror of
https://github.com/zhigang1992/react-native-draggable-grid.git
synced 2026-03-26 07:04:12 +08:00
fix:fix drag style erro
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user