DragAndDrop icon indicating copy to clipboard operation
DragAndDrop copied to clipboard

Validating Droppable place for more than two draggable and droppable element

Open uc-spr opened this issue 9 years ago • 1 comments

I' m creating five droppable element dynamically. after that i have created five draggable element by using panResponder. I am dropping these draggable element on droppable element but these are not dropped there.

neww

As in Above figure five draggable element are created in bottom and five droppable element are created which are blank rectangular boxes. I want drop these draggable element only in droppable boxes so i am using onlayout function of <View> to store the event.nativeEvent.layout of droppable views. but I think there is some issues in my code. And on Drop i m checking

(gesture.moveX > dz.x && gesture.moveX < dz.x + dz.width) == true && (gesture.moveY > dz.y && gesture.moveY < dz.y + dz.height) == true)

for droppable.

but it always return false . please help me.

uc-spr avatar Aug 13 '16 10:08 uc-spr

Hi, did you get this right? if yes would you kindly share your code please?

andycapcom avatar Sep 06 '16 10:09 andycapcom