我正在尝试通过 CAShapeLayer+UIBezierPath 实现以下效果:
但是当createAndRegisterViewWithReactTag:viewName:props:
-> RCT_REMAP_VIEW_PROPERTY(borderRadius, layer.cornerRadius, CGFloat)
时,视图/层 bounds.size 为零。 最后我挂钩 RCTView 的reactBridgeDidFinishTransaction
来添加边框半径......
有没有更好的方法来为 RCTView 的左下角和右下角设置 borderRadius?
我也很好奇如何分配单个角边界半径..不是所有四个角。 谢谢!
现在可以使用borderBottomLeftRadius
等 :smile:
伟大的作品!
最有用的评论
现在可以使用
borderBottomLeftRadius
等 :smile: