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

borderRadius style prop #37

Open
Anwati opened this issue Mar 13, 2019 · 2 comments
Open

borderRadius style prop #37

Anwati opened this issue Mar 13, 2019 · 2 comments

Comments

@Anwati
Copy link

Anwati commented Mar 13, 2019

Hello!

I have an issue with the borderRadius prop. The svg style prop is not using it.
ex:
<Image
style={{borderRadius: 70}}
source={getCountryFlagIcon(this.props.country.toLocaleLowerCase())}
/>
It works when I apply the borderRadius to a parent View but it's having a weird behavior on android. On android, it's rendering the svg with no borderRadius for a second and then apply the style of the parent view. It's the same when I click on the svg, the style of the parent view disappear for a second.
Everything works fine on ios.

Any idea about that?

Thank you

@seekshiva
Copy link
Owner

Can you also try overflow: hidden along with borderRadius, so that the WebView may get properly hidden? borderRadius sometimes used to just draw the radius but allowed the inner content to flow out, so maybe this would help.

@Anwati
Copy link
Author

Anwati commented Mar 16, 2019

Thank you for you answer, I will try it. But since that, I built it and tried with an android emulator, the svg are not appearing at all :-/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants