React native React Native向视图添加两侧边框无效
我想在React Native中添加要查看的左边框和下边框 这是我的密码React native React Native向视图添加两侧边框无效,react-native,React Native,我想在React Native中添加要查看的左边框和下边框 这是我的密码 dashedBorderView: { position: 'absolute', bottom: 35, left: 45, top: 50, right: 0, borderLeftWidth: 1, borderBottomWidth: 1, borderColor: '#dfdfdf', borderStyle: 'dashed', },
dashedBorderView: {
position: 'absolute',
bottom: 35,
left: 45,
top: 50,
right: 0,
borderLeftWidth: 1,
borderBottomWidth: 1,
borderColor: '#dfdfdf',
borderStyle: 'dashed',
},
但它没有显示任何边界
但如果我真的喜欢跟随,四个边的边界显示
dashedBorderView: {
position: 'absolute',
bottom: 35,
left: 45,
top: 50,
right: 0,
borderWidth: 1,
borderColor: '#dfdfdf',
borderStyle: 'dashed',
},
请引导我。
谢谢。对特定的边框颜色使用以下属性
borderLeftColor: '#dfdfdf',
borderBottomColor: '#dfdfdf'
或
尝试更改边框样式,告诉我是否有效。但我想显示虚线边框。在Android中它支持虚线吗?这是我的反应,但使用可以将你的观点包装到另一个观点中,并给他填充。我希望它能起作用
borderWidth: 1,
borderColor: '#dfdfdf',
borderTopColor: transparent
borderRightColor: transparent