简体   繁体   English

如何在 React Native 中绘制六边形图像

[英]How to draw hexagonal shape image in react Native

I am trying to display a hexagon shaped image with white borders.我正在尝试显示带有白色边框的六边形图像。 The problem is, I can't make the view that contains the image hexagonal.问题是,我无法将包含图像的视图设为六边形。

Has anyone ever needed to display such an image?有没有人需要显示这样的图像?

You can use clipPath and svg您可以使用 clipPath 和 svg

Medium article 中篇

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

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