Quantcast
Channel: How to use TouchableWithoutFeedback's props according to situation - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by wicky for How to use TouchableWithoutFeedback's props according to...

You can use onPressOut with a state<TouchableWithoutFeedback onPressIn={() => this.setState({buttonPress: 'short'})} onLongPress={() => this.setState({buttonPress: 'long'})} onPressOut={()...

View Article



How to use TouchableWithoutFeedback's props according to situation

I use TouchableWithoutFeedback as a button. But when I press the button I want it do 'A'. When I do a long press of the button, I want it do 'B'. How do I can do this?<TouchableWithoutFeedback...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>