react-native-sortable-grid icon indicating copy to clipboard operation
react-native-sortable-grid copied to clipboard

Drag and Drop fails and the Grid collapses.

Open fabianunger opened this issue 7 years ago • 3 comments

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>

drag_and_drop_fails

fabianunger avatar Jun 04 '18 10:06 fabianunger

I had the same issue. What's disturbing about this, is that in Debug mode this is actually working.

ilyaivanov avatar Feb 22 '19 09:02 ilyaivanov

@ilyaivanov have you found a solution?

saulve avatar Feb 11 '20 09:02 saulve

Drag and drop is not working for me as well. Does anyone have similar issue?

Yandamuri avatar May 15 '20 05:05 Yandamuri