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

Android: SvgView should have explicit width and height set #57

Closed
mrozbarry opened this issue Jun 14, 2016 · 2 comments
Closed

Android: SvgView should have explicit width and height set #57

mrozbarry opened this issue Jun 14, 2016 · 2 comments

Comments

@mrozbarry
Copy link

I have an SvgView that is being super-imposed over a View, but the view has variable width and height. On iOS, I had no problem specifying <Svg style={{ position: 'absolute', top: 0, bottom: 0, left: 0, right: 0 }}> ... </Svg>, but on Android, I get the following error:

screen shot 2016-06-14 at 3 32 33 pm

Is this some sort of restriction on android, or a bug?

@magicismight
Copy link
Collaborator

This had been fixed in this commit

@habeebrahmanpt
Copy link

E/unknown:ReactNative: Exception in native call
java.lang.IllegalStateException: SurfaceView should have explicit width and height set
at com.horcrux.svg.SvgViewManager$1.measure(SvgViewManager.java:39)

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

3 participants