title: React Native - Image Require Module using Dynamic Names
body: <p>I'm currently building a test app using React Native. The Image module thus far has been working fine.</p>
  <p>For example, if I had an image named <code>avatar</code>, the below code snippet works fine.</p>
  <pre><code>&lt;Image source={require('image!avatar')} /&gt;
  </code></pre>
  <p>But if I change it to a dynamic string, I get</p>
  <pre><code>&lt;Image source={require('image!' + 'avatar')} /&gt;
  </code></pre>
  <p>I get the error:</p>
  <pre>
  Requiring unknown module "image!avatar". If you are sure the module is there, try restarting the packager.
  </pre>
  <p>Obviously, this is a contrived example, but dynamic image names are important. Does React Native not support dynamic image names?</p>
  <p><img src="https://i.stack.imgur.com/I4UZB.png" alt="React native error with dynamic image name" /></p>