gpt4 book ai didi

javascript - React Native 中 View 的反转边框半径

转载 作者:行者123 更新时间:2023-11-30 10:58:23 25 4
gpt4 key购买 nike

我试图在 React Native 中搜索与倒置边界半径相关的很多 View ,但没有找到任何东西。请在下方找到图片以供引用。

enter image description here

最佳答案

尝试使用 2 个 View ,一个包裹在另一个 View 下并实现相同的效果,因为 react native 仍然不支持反转的 borderradius。检查更新的 EXPO 链接以获取详细 View 。 Expo link

<View>
<View
style={{
width: 100,
height: 100,
backgroundColor: 'black',
alignItems: 'center',
justifyContent: 'flex-start',
}}>
<View
style={{
backgroundColor: 'white',
height: 50,
width: 50,
alignSelf: 'flex-start',
borderBottomRightRadius: 50,
}}
/>
</View>
</View>

关于javascript - React Native 中 View 的反转边框半径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59082031/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com