SVG use in React Native project
<p>I want to use SVG icons in my React Native project. I'm requiring it like:</p>

<pre><code>var svg = require('../images/Upvote.svg');
</code></pre>

<p>But i'm getting this error:</p>

<blockquote>
  <p>Unable to resolve module ../images/Upvote.svg from
  /path/to/my/project/js/Component.js: Invalid directory
  /path/to/my/project/images/Upvote.svg</p>
</blockquote>

<p>Am i suppose to add/change something in Xcode project settings?</p>

<p>BTW, everything is fine if i'm using PNG image, no errors..</p>