diff --git a/lib/DragSortableView.js b/lib/DragSortableView.js index 6170f82..1eb0b56 100644 --- a/lib/DragSortableView.js +++ b/lib/DragSortableView.js @@ -177,7 +177,7 @@ export default class DragSortableView extends Component{ let left = this.touchCurItem.originLeft + dx let top = this.touchCurItem.originTop + dy - this.touchCurItem.ref.setNativeProps({ + this.touchCurItem.ref?.setNativeProps({ style: { zIndex: touchZIndex, } @@ -271,7 +271,7 @@ export default class DragSortableView extends Component{ useNativeDriver: false, } ).start(()=>{ - this.touchCurItem.ref.setNativeProps({ + this.touchCurItem.ref?.setNativeProps({ style: { zIndex: defaultZIndex, }