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

svg not rendering on page #19

Open
atilganeren opened this issue Jul 31, 2018 · 2 comments
Open

svg not rendering on page #19

atilganeren opened this issue Jul 31, 2018 · 2 comments

Comments

@atilganeren
Copy link

I am using remote-svg on RN project. When i use svg there is no error but not rendered image to. are there some xcode optimization ? when i use svg with webview its rendering.

@seekshiva
Copy link
Owner

Since there is no native support for rendering svg, this project internally opens up a WebView and provides the svg via uri.

Can you provide more details about the image you are trying to load? Is it a local svg or a remote uri? If remote, can you check if the image opens correctly in a normal web browser?

Also, specifying width and height in style is mandatory (just like it is mandatory for RN Image). So make sure you specify them.

@atilganeren
Copy link
Author

atilganeren commented Jul 31, 2018

same code working on android and this code used to work on ios . When i install fbsdk i got binding error. i deleted node modules and run "npm install" and upgrade babel version to fix this binding error. Eventually everything works good but images has gone :(

importing like this;

import Image from 'react-native-remote-svg';

this is code;

<Image style={{
   resizeMode: "contain",
   width: wp("30%"),
   height: hp("4.05%"),
   }}
  source={require('./../../images/SVG/paketusLogo.svg')} />

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