I want to make image rounded from bottom of it. Here is what I wanted to make:
我尝试过设置边界半径,但它将适用于整个图像而不是底部。
这是我的代码:
<View
style={{
backgroundColor: ‘transparent’,
justifyContent: ‘center’,
alignItems: ‘center’,
height: 159,
width: '100%',
borderBottomWidth: 70,
borderBottomColor: ‘red’,
borderBottomRightRadius: 800,
borderBottomLeftRadius: 800,
}}
/>
它会给出这样的输出:
我需要设置哪个属性才能在视图底部形成完美的圆形?
you can add a png frame transparent with this shape on it
你也可以检查一下它可能会有所帮助React-Native 的形状
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)