I am trying to set the horizontal ScrollViewinside the component TouchableOpacity(for necessary reasons). However, it TouchableOpacityredefines any horizontal scrolling capabilities and performs onPresseven for horizontal touch movement.
Is there a way to prioritize touch ScrollViewover parent Touchable? Thus, the user can scroll the component and click on it. Below is a code snippet similar to what I am trying to implement.
<TouchableOpacity
onPress={this._onPress}>
<View>
... Some view I want static ...
</View>
<ScrollView
horizontal={true}>
... A bunch of components I want scrollable ...
</ScrollView>
</TouchableOpacity>
Thanks!
source
share