Git Product home page Git Product logo

Comments (7)

dancormier avatar dancormier commented on July 24, 2024

Hi @geirman,

I think I understand the issue. The <Swipeout/> component should wrap your <TouchableHighlight/> like this:

<View>
  <Swipeout 
    right={swipeoutBtns}
    autoClose='true'
    backgroundColor= 'transparent'>
    <TouchableHighlight
      underlayColor='white'
      onPress={() => { this._getTrackedItems( aircraft ) }}>
      <View style={styles.rowContainer}>
        ...
      </View>
    </TouchableHighlight>
  </Swipeout>
  <Separator />
</View>

This will allow your component to be both clickable and swipeable to reveal the buttons. This is because contains both your swipeable element and the buttons (which have their own <TouchableHightlight/>).

Hopefully this solves your issue 👍

from react-native-swipeout.

geirman avatar geirman commented on July 24, 2024

That did the trick! Thanks! And thank you for creating this component... it's awesome!

from react-native-swipeout.

dancormier avatar dancormier commented on July 24, 2024

My pleasure :)

from react-native-swipeout.

shiba4life avatar shiba4life commented on July 24, 2024

Hi @dancormier, this appears to be an issue for me that just came up on ios9.2.1 (13d20). I have my touchablehighlight nested within swipeout and when I press on the component, I get this message on xCode:

[tid:com.facebook.React.JavaScript] onOpen: -1 -1

Also running this on iPhone 6s, might have something to do with 3D Touch?

from react-native-swipeout.

ilyago avatar ilyago commented on July 24, 2024

does't work on device note5

from react-native-swipeout.

geirman avatar geirman commented on July 24, 2024

@ilyago I think this is native functionality now. I was going to provide a link to the docs, but wasn't able to quickly find a reference. 🤡

from react-native-swipeout.

silentcloud avatar silentcloud commented on July 24, 2024

try version 2.1.1

from react-native-swipeout.

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.