Top "Touchableopacity" questions

React Native wrapper for making views respond properly to touches.

React native TouchableOpacity onPress not working on Android

TouchabelOpacity works fine on iOS but the onPress method does not work on Android for me. My react-native version: 0.57.4 My …

android react-native touchableopacity touchablehighlight
React native TouchableOpacity onPress Problems

I have a simple icon button as follows : class SideIcon extends Component { render() { return ( <TouchableOpacity onPress={console.log('puff')} …

react-native touchableopacity
Set opacity's volume onPress of TouchableOpacity manually in React-Native

I am trying to figure out how to change the volume of the opacity of TouchableOpacity component of React-Native, meaning …

javascript reactjs button react-native touchableopacity
Change color of TouchableOpacity in React Native

Can anyone help me. This is my source code: https://snack.expo.io/rJFgyPDpH Idea is that, if I click …

javascript reactjs react-native expo touchableopacity
How to disable highlighting effect of TouchableOpacity when scrolling?

<TouchableOpacity style={{ flex: 1 }} > <ImageBackground source={require('../../images/home.jpg')}> <View style={styles.item} collapsable={…

react-native scrollview touchableopacity
How do I use React Native onLongPress properly?

I have a simple piece of code that's just a TouchableOpacity with a onLongPress prop, but it does not seem …

react-native react-native-android touchableopacity touchablehighlight touchablewithoutfeedback
Create "Raised" or Shadow effect on TouchableOpacity: React Native

I use react-native-elements, and they make it easy to make an actual button appear "raised", or shadowed. I want to …

react-native button styling touchableopacity
Stacked TouchableOpacity inside another TouchableOpacity is not clickable

Even though this document (https://facebook.github.io/react-native/docs/gesture-responder-system.html) states, that touch events are passed down to …

android react-native touchableopacity
How to include TouchableOpacity within Text ReactNative

Hi I want to wrap TouchableOpacity within a Text as I want to make some of the text clickable. When …

reactjs react-native text view touchableopacity
How to resize TouchableOpacity according to the component present inside it?

I'm using TouchableOpacity to make a button as I'm learning react-native. But the problem is, TouchableOpacity takes 100% width of the …

javascript react-native touchableopacity