Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drag and Drop fails and the Grid collapses. #49

Open
fabianunger opened this issue Jun 4, 2018 · 3 comments
Open

Drag and Drop fails and the Grid collapses. #49

fabianunger opened this issue Jun 4, 2018 · 3 comments

Comments

@fabianunger
Copy link

fabianunger commented Jun 4, 2018

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 fabianunger changed the title Drag and Drop has Bugs. Drag and Drop bugs. Jun 4, 2018
@fabianunger fabianunger changed the title Drag and Drop bugs. Drag and Drop fails and the Grid collapses. Jun 4, 2018
@ilyaivanov
Copy link

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

@saulve
Copy link

saulve commented Feb 11, 2020

@ilyaivanov have you found a solution?

@Yandamuri
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants