边框半径按钮react-native-elements的问题

tay*_*nan 5 user-interface react-native react-native-elements

你能帮我解决反应原生元素库上按钮边框半径的问题吗?

我向按钮添加了边框半径,但其不透明度仍然是矩形,我不明白为什么。

https://github.com/react-native-elements/react-native-elements/issues/2324

小智 4

在 ReactNative: 0.65、Elements: 3.4.2 和 API 29 中,这种情况仍然发生在我身上,但我找到了一个在 View 上设置 Overflow:'hidden' 的解决方案,如下所示:

<View style={{
  width:"100%", 
  borderRadius: 30, 
  overflow: 'hidden' 
}}>
  <Button
    title="Login"
    type="solid"
    buttonStyle={{borderRadius: 30}}
  />
</View>
Run Code Online (Sandbox Code Playgroud)