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

Using TouchableOpacity make grid item not orderable #20

Closed
chhornponleu opened this issue Apr 7, 2017 · 8 comments
Closed

Using TouchableOpacity make grid item not orderable #20

chhornponleu opened this issue Apr 7, 2017 · 8 comments

Comments

@chhornponleu
Copy link

chhornponleu commented Apr 7, 2017

<SortableGrid
    itemsPerRow = { 3 }
    dragStartAnimation = {{transform: []}}
    >
    {
        ['a', 'b', 'c'].map( (letter, index) =>
            <TouchableOpacity key={index}>
                <Text>{letter}</Text>
            </TouchableOpacity>
        )
    }
</SortableGrid>
@shopshow
Copy link

shopshow commented Mar 8, 2018

same issue +1

@bhavukjain1
Copy link

Use disabled.

<SortableGrid
    itemsPerRow = { 3 }
    dragStartAnimation = {{transform: []}}
    >
    {
        ['a', 'b', 'c'].map( (letter, index) =>
            <TouchableOpacity disabled key={index}>
                <Text>{letter}</Text>
            </TouchableOpacity>
        )
    }
</SortableGrid>

@chhornponleu
Copy link
Author

@bhavukjain1
Use disabled will not make onPress event of the TouchableOpacity be triggered.

@rajscet
Copy link

rajscet commented Dec 19, 2018

same issue

@spicyboiledfish
Copy link

same issue. I want to use the function "onPress" from TouchableOpacity, but it doesn't work to drag. And I try to use onTap from your example, it's bad, doesn't work

@stueynet
Copy link

Same here. Any other way to make the items in the grid actionable buttons?

@chhornponleu
Copy link
Author

@stueynet I end up using another lib

@luan-nvg
Copy link

o mesmo problema. Eu quero usar a função "onPress" do TouchableOpacity, mas não funciona para arrastar. E eu tento usar onTap do seu exemplo, é ruim, não funciona

here it worked

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

7 participants