[英]React native transparent text
我的代码片段:
<ImageBackground source={require('...')}>
<View style={[styles.buttonView, {flex: 2, backgroundColor: 'white'}]}>
<TouchableOpacity activeOpacity={0.6}>
<View style={{paddingTop: 15, paddingBottom: 15}}>
<Text style={[styles.textItem, {fontWeight: "bold", color: 'transparent'}]}>
Kobieta
</Text>
</View>
</TouchableOpacity>
</View>
</ImageBackground>
但是当前按钮中的文本为白色。
尝试设置backgroundColor:'transparent'而不是颜色。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.