我试图为文档选取器容器创建一个按钮,我希望按钮的属性为dashed border
。但是,我遇到了一个问题,纸张按钮的属性似乎偏离了边框cutting
。我该怎么办?
<Text>Select Document:</Text>
<Button
mode="text"
icon={"plus"}
onPress={pickDocument}
contentStyle={{
height: 50,
borderWidth: 1,
borderStyle: "dashed",
borderColor:'#060d60'
}}
>
Select Document{" "}
</Button>
字符串
这就是我的代码的样子
1条答案
按热度按时间taor4pac1#
增加
borderRadius:50
与高度值相同示例:
字符串