簡體   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