【发布时间】:2018-01-08 18:54:42
【问题描述】:
Here's how this part looks using TouchableWithoutFeedback
And here is the same thing, except with TouchableOpacity
这部分的代码:
<TouchableWithoutFeedback>
<View style={styles.buyCoinsItem}>
<View style={styles.cost}>
<Text>{no_of_coins}</Text>
</View>
<Text>{product.priceString}</Text>
<View style={{height:30, flexDirection: 'row', marginTop:10}}>
{displayDiscount &&
<View style={styles.discountContainer}>
<Text style={styles.whiteText}>Save {discount}</Text>
</View>
}
</View>
</View>
</TouchableWithoutFeedback>
这是怎么回事?
【问题讨论】:
标签: react-native touchableopacity