【发布时间】:2019-02-14 15:41:48
【问题描述】:
我想在一侧添加虚线边框,
{
height: '100%',
width: 20,
position: 'absolute',
borderRadius : 1,
borderStyle: 'dashed',
borderRightWidth: 1,
borderRightColor: 'rgba(161,155,183,1)'
}
这不起作用,但是当我将其更改为
{
height: '100%',
width: 20,
position: 'absolute',
borderRadius : 1,
borderStyle: 'dashed',
borderWidth: 1,
borderColor: 'rgba(161,155,183,1)'
}
工作,但在 4 边边框。
如何在一侧添加 bashed 边框?
还有一种方法可以为破折号添加更多间距吗?
"react-native": "0.57.7"
【问题讨论】:
-
你能把虚线改成虚线吗
-
注意:在撰写本文时,将
borderStyle应用于单个边框边缘在 React Native 0.63.2 中已损坏,但有一个开放的 PR 可以解决此限制:github.com/facebook/react-native/pull/29099
标签: android ios reactjs react-native