Comments (7)
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.
That did the trick! Thanks! And thank you for creating this component... it's awesome!
from react-native-swipeout.
My pleasure :)
from react-native-swipeout.
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.
does't work on device note5
from react-native-swipeout.
@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.
try version 2.1.1
from react-native-swipeout.
Related Issues (20)
- Will setNativeProps works for external libraries as well?
- Out of memory error in Swipeout
- Tiny white space between buttons on IOS
- Touchable Opacity Not working after adding swipeout HOT 6
- How to change text dynamically HOT 2
- Calling setState with scroll scrollEnabled argument prevents the swipeoutButtons from opening HOT 1
- stuck problem when swipe
- openLeft/openRight not working HOT 2
- Wrong type exported.
- how to set fontsize HOT 1
- Expo doesn't like react-native-swipeout HOT 1
- Swipe disabled when using TouchableWithoutFeedback HOT 5
- 子条目点击事件和滑动事件怎么解决冲突 HOT 1
- the View in Swipeout can't swipe while swipe it HOT 1
- Swipe Left doesn't push the item it just covers it. HOT 12
- Suggestion to move to @react-native-community HOT 4
- Can I maintain this repository ? HOT 3
- Unsafe Component Warning HOT 2
- How can i change the animation speed of closing/opening animation?
- Is there any prop to autoclose the swipeout when I open another
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-swipeout.