React-native: set_borderRadius for only bottom-left and bottom-right corner of a View

Created on 6 Apr 2015  路  3Comments  路  Source: facebook/react-native

I'm trying to implement the following effect by CAShapeLayer+UIBezierPath:
react borderRadius

But the view/layer bounds.size is zero when createAndRegisterViewWithReactTag:viewName:props: -> RCT_REMAP_VIEW_PROPERTY(borderRadius, layer.cornerRadius, CGFloat). Finally I hook RCTView's reactBridgeDidFinishTransaction to add border radius...

Is there a better way to set borderRadius for only bottom-left and bottom-right corner of a RCTView?

Locked

Most helpful comment

This is possible now with borderBottomLeftRadius etc :smile:

All 3 comments

I am also curious how to assign individual corner border radiuses.. not all four corners. Thanks!

This is possible now with borderBottomLeftRadius etc :smile:

Great Works!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

axelg12 picture axelg12  路  3Comments

anchetaWern picture anchetaWern  路  3Comments

oney picture oney  路  3Comments

DreySkee picture DreySkee  路  3Comments

TrakBit picture TrakBit  路  3Comments