[英]How to change the underline thickness in react native
I have been using reactive native for a few weeks and I have stuck at a point.我使用反应式原生已经有几个星期了,但我一直卡在某个点上。 I have a text and it is underlined.
我有一个文本,它有下划线。 But I need to make the thickness of the underline higher so that it is clearly visible.
但是我需要使下划线的粗细更高,以便清晰可见。 I tried finding a solution and didn't get any.
我试图找到解决方案,但没有得到任何解决方案。 Can someone help me here?
有人可以在这里帮助我吗?
My code is like the following.我的代码如下。 :
:
<Text style={{textDecorationLine: 'underline'}}>Underlined Text</Text>
<TextInput style={styles.textInput}/>
const styles = StyleSheet.create({
textInput: {
borderBottomColor: '#000', // Add this to specify bottom border color
borderBottomWidth: 10 // Add this to specify bottom border thickness
}
});
Underline Text下划线文本
const styles = StyleSheet.create(
{
Container:
{
justifyContent: 'center',
flex: 1,
},
TextStyle:
{
textAlign: 'center',
fontSize: 20,
textDecorationLine: 'underline',
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.