{"action":"created","issue":{"url":"https://api.github.com/repos/react-native-community/react-native-svg/issues/109","repository_url":"https://api.github.com/repos/react-native-community/react-native-svg","labels_url":"https://api.github.com/repos/react-native-community/react-native-svg/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/react-native-community/react-native-svg/issues/109/comments","events_url":"https://api.github.com/repos/react-native-community/react-native-svg/issues/109/events","html_url":"https://github.com/react-native-community/react-native-svg/issues/109","id":169945030,"number":109,"title":"How can I show SVG file on React Native?","user":{"login":"Sly777","id":694940,"avatar_url":"https://avatars0.githubusercontent.com/u/694940?v=4","gravatar_id":"","url":"https://api.github.com/users/Sly777","html_url":"https://github.com/Sly777","followers_url":"https://api.github.com/users/Sly777/followers","following_url":"https://api.github.com/users/Sly777/following{/other_user}","gists_url":"https://api.github.com/users/Sly777/gists{/gist_id}","starred_url":"https://api.github.com/users/Sly777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sly777/subscriptions","organizations_url":"https://api.github.com/users/Sly777/orgs","repos_url":"https://api.github.com/users/Sly777/repos","events_url":"https://api.github.com/users/Sly777/events{/privacy}","received_events_url":"https://api.github.com/users/Sly777/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-08-08T15:02:12Z","updated_at":"2017-09-01T15:48:06Z","closed_at":null,"author_association":"NONE","body":"I want to show svg files (i have bunch of svg images) but the thing i couldn't find the way to show. I tried to use Image and Use components of react-native-svg but they don't work with that. And i tried to do that with native way but it's really hard work to show just svg image.\n\nExample code:\n\n```\nimport Svg, {\n  Use,\n  Image,\n} from 'react-native-svg';\n\n<View>\n  <Svg width=\"80\" height=\"80\">\n     <Image href={require('./svg/1f604.svg')} />\n  </SvgRn>\n</View>\n```\n\ni know react native doesn't support svg basically but i think someone fix this problem with tricky way (with/without react-native-svg)\n\nAlso i created the topic on stack overflow.\nhttp://stackoverflow.com/questions/38830568/how-can-i-show-svg-file-on-react-native\n"},"comment":{"url":"https://api.github.com/repos/react-native-community/react-native-svg/issues/comments/326615624","html_url":"https://github.com/react-native-community/react-native-svg/issues/109#issuecomment-326615624","issue_url":"https://api.github.com/repos/react-native-community/react-native-svg/issues/109","id":326615624,"user":{"login":"daformat","id":1694893,"avatar_url":"https://avatars2.githubusercontent.com/u/1694893?v=4","gravatar_id":"","url":"https://api.github.com/users/daformat","html_url":"https://github.com/daformat","followers_url":"https://api.github.com/users/daformat/followers","following_url":"https://api.github.com/users/daformat/following{/other_user}","gists_url":"https://api.github.com/users/daformat/gists{/gist_id}","starred_url":"https://api.github.com/users/daformat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daformat/subscriptions","organizations_url":"https://api.github.com/users/daformat/orgs","repos_url":"https://api.github.com/users/daformat/repos","events_url":"https://api.github.com/users/daformat/events{/privacy}","received_events_url":"https://api.github.com/users/daformat/received_events","type":"User","site_admin":false},"created_at":"2017-09-01T15:48:06Z","updated_at":"2017-09-01T15:48:06Z","author_association":"NONE","body":"Watch out if you target Android, from the README for [react-native-svg-uri](https://github.com/matc4/react-native-svg-uri/blob/master/README.md):\r\n\r\n> [ANDROID] There is a problem with static SVG file on Android, Works OK in debug mode but fails to load the file in release mode. At the moment the only workaround is to pass the svg content in the svgXmlData prop.\r\n\r\nWhat I do is I use [svg-to-react-cli](https://github.com/goopscoop/svg-to-react-cli) and then tweak the output, saves some time, but it's still not optimal."}}
{"actor":{"display_login":"daformat"}}