fangwei716 / 30-days-of-react-native

30 days of React Native demos
6.82k stars 1.46k forks source link

Day 18 - Drag and Drop #67

Open BlagojeV93 opened 6 years ago

BlagojeV93 commented 6 years ago

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