title: Image Component declaring source dynamically
body: <p>This might be a potential bug in the Image component for react native:</p>
  
  <pre><code>//1. Works as expected
  render() {
     return (
       &lt;View&gt;
           &lt;Image source={require('../images/somepic.jpg')}
               resizeMode='contain'
               style={{width: 600, height: 600}}
               /&gt;
       &lt;/View&gt;
     );
  }
  
  
  //2. Does not work:
  render() {
     var imageLocation = '../images/somepic.jpg';
     return (
       &lt;View&gt;
           &lt;Image source={require(imageLocation)}
               resizeMode='contain'
               style={{width: 600, height: 600}}
               /&gt;
       &lt;/View&gt;
     );
  }
  </code></pre>
  
  <p>In the second example the error displayed is: Requiring unknown module "../images/somepic.jpg". If you are sure there is a module there, try restarting the package or running "npm install"  </p>