react-native-sortable-grid
react-native-sortable-grid copied to clipboard
Drag and Drop fails and the Grid collapses.
RN -> 0.52.0 React -> 16.2.0 I use react-native-navigation, maybe that causes the problem?
Hi @ollija, I tried a long time solving this. Grid displays fine, but drag and drop fails.
Is this a known Issue? Does anybody have similar problems?
Even the simplest example does not work:
<SortableGrid
blockTransitionDuration = { 400 }
activeBlockCenteringDuration = { 200 }
itemsPerRow = { 4 }
dragActivationTreshold = { 200 }
onDragRelease = { (itemOrder) => console.log("Drag was released, the blocks are in the following order: ", itemOrder) }
onDragStart = { () => console.log("Some block is being dragged now!") }
>
{
this.state.abc.map( (letter, index) =>
<View key={index} style={styles.block}>
<Text style={{color: 'white', fontSize: 50}}>{letter}</Text>
</View>
)
}
</SortableGrid>

I had the same issue. What's disturbing about this, is that in Debug mode this is actually working.
@ilyaivanov have you found a solution?
Drag and drop is not working for me as well. Does anyone have similar issue?