繁体   English   中英

没有 svg 或类似的 React Native 中的两个彩色圆圈(使用视图)

[英]Two colored circle in React Native without svg or similar (using Views)

是否可以在没有 svg 的情况下在 react-native 中创建两个彩色圆圈? 我在paint.net 上做了一个快速模型,这样你就可以看到我到底想要什么。

双色圆圈样机

提前致谢

在此处输入图像描述

 <View style={{ height: 200, width: 200, borderRadius: 100, overflow: 'hidden' }}> <View style={{ backgroundColor: 'red', height: 100, width: 200 }} /> <View style={{ backgroundColor: 'green', height: 100, width: 200 }} /> </View>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM