(iOS Only)<TouchableOpacity> doesn't respond if it is inside of a <ScrollView> :
- It works properly in the simulator but not in a real device,
keyboardShouldPersistTaps="always"doesn't make any difference- Partial code:
<ScrollView style={styles.scrollView}><TouchableOpacity style={styles.xButton} onPress={() => this._onClose()}>
any suggestions?
--- Code update -----
<ScrollView style={styles.scrollView}><TouchableOpacity style={styles.xButton} onPress={() => this._onClose()}><Image style = {styles.xImg} source = {require('../../images/xbtn.png')}/></TouchableOpacity> {this._renderPricing()} {this._renderServices()}</ScrollView>and the Styling looks like this:
scrollView:{ width: width, height: height,}, xButton: { position: 'absolute', zIndex: 1, marginTop: '1%', marginRight: '3%', alignSelf: 'flex-end',},xImg: { resizeMode: 'contain', aspectRatio: .6, opacity: 0.5,},