In your case there are 15 items in an array you defined at the beginning, but in my case I have a different drag and drop Items, whose number is not always the same, lets say they appear dynamically depending on what is clicked before that. And when I have some empty space, and try to drag it over that empty space, the app breaks and it shows me error - undefined is not an object, (evaluating 'box.setNativeProps'). I assume that somehow drag and drop area should be restricted to space where items exists only. Any tips how to do this?
In your case there are 15 items in an array you defined at the beginning, but in my case I have a different drag and drop Items, whose number is not always the same, lets say they appear dynamically depending on what is clicked before that. And when I have some empty space, and try to drag it over that empty space, the app breaks and it shows me error - undefined is not an object, (evaluating 'box.setNativeProps'). I assume that somehow drag and drop area should be restricted to space where items exists only. Any tips how to do this?
Thanks in advance