Git Product home page Git Product logo

Comments (8)

shopshow avatar shopshow commented on July 18, 2024

same issue +1

from react-native-sortable-grid.

bhavukjain1 avatar bhavukjain1 commented on July 18, 2024

Use disabled.

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

from react-native-sortable-grid.

chhornponleu avatar chhornponleu commented on July 18, 2024

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

from react-native-sortable-grid.

rajscet avatar rajscet commented on July 18, 2024

same issue

from react-native-sortable-grid.

spicyboiledfish avatar spicyboiledfish commented on July 18, 2024

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

from react-native-sortable-grid.

stueynet avatar stueynet commented on July 18, 2024

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

from react-native-sortable-grid.

chhornponleu avatar chhornponleu commented on July 18, 2024

@stueynet I end up using another lib

from react-native-sortable-grid.

luan-nvg avatar luan-nvg commented on July 18, 2024

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

from react-native-sortable-grid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.