我想在我的文本周围加上一个边框。
<View style={{ borderRadius: 1, borderWidth: 1, borderColor:'#FF0000',}}>
<Text style={{
fontSize: 0.8,
fontWeight: '400',
layoutOrigin: [0.5, 0.5],
paddingLeft: 0.2,
paddingRight: 0.2,
textAlign: 'center',
textAlignVertical: 'center',
transform: [{translate: [0, 0, -3]}],
}}>
hello
</Text>
</View>
如果我将borderWidth 保留为1,我会看到你好,但我看不到边框。如果我将borderWidth 更改为10 之类的值,我什么也看不到。如何为 hello 文本添加边框?