react-native - 边框半径按钮反应原生元素的问题
问题描述
你能帮我解决这个反应原生元素库上按钮的边框半径问题吗?
我正在为按钮添加边框半径,但它的不透明度仍然是矩形,我不明白为什么。
https://github.com/react-native-elements/react-native-elements/issues/2324
解决方案
在 ReactNative: 0.65, Elements: 3.4.2 和 API 29 这仍然发生在我身上,但我发现一个解决方案设置 overflow:'hidden' on View 像这样:
<View style={{
width:"100%",
borderRadius: 30,
overflow: 'hidden'
}}>
<Button
title="Login"
type="solid"
buttonStyle={{borderRadius: 30}}
/>
</View>
推荐阅读
- java - 使用 apache-commons-fileupload 在 Spring 中上传文件时出现问题
- powershell - 如何丢弃 PowerShell ActiveDirectory cmdlet 的错误?
- apache-camel - 骆驼路线测试 - 注册表:模拟:结果
- c - Can alloca() memory be reallocated?
- r - 根据其他行的值向数据框添加额外的行
- python - 使用 Python 抓取谷歌搜索结果的标题和网址
- html - HTML 电子邮件中的响应框
- dolphindb - parallelLevel 在回放功能中不生效
- xsd - 有没有办法处理/忽略biztalk中收到的xml文件中的内联xsd?
- javascript - D3 力图中的线性运动