title: require() must have a single string literal argument React Native
body: <p>I've  component in my application which works fine if it is assigned direct string value("someImage.png"), but if I try to assign it by storing image name in a local variable it gives this exception "require() must have a single string literal argument"
  This line works fine</p>
  
  <pre><code>&lt;ImageBackground source={require("./Resources/bg/imageone.png")} resizeMode='cover' style={customStyles.backdrop}&gt;
  </code></pre>
  
  <p>Issue occurs in this case</p>
  
  <pre><code>let imageName = "./Resources/bg/imageone.png";          
  &lt;ImageBackground id="123" source={require(imageName)} resizeMode='cover' style={customStyles.backdrop}&gt;
  </code></pre>
  
  <p>I also found same issue reported <a href="https://stackoverflow.com/questions/47042892/react-native-require-must-have-a-sing-string-literal-argument">here</a>, but no one has answered that yet. Can you help me out here?</p>