Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_borderRadius for only bottom-left and bottom-right corner of a View #691

Closed
upbit opened this issue Apr 6, 2015 · 3 comments
Closed
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@upbit
Copy link

upbit commented Apr 6, 2015

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?

@upbit upbit changed the title set_borderRadius just at the bottom of the View set_borderRadius for only bottom-left and bottom-right corner of a View Apr 6, 2015
@loreasinclaire
Copy link

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

@brentvatne
Copy link
Collaborator

This is possible now with borderBottomLeftRadius etc 😄

@upbit
Copy link
Author

upbit commented Jun 1, 2015

Great Works!

@facebook facebook locked as resolved and limited conversation to collaborators May 31, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants