title: React Native Random BackImage with Expo
body: <p>I am trying to set a random background image to React Native using expo. Here is the code:</p>
  <pre><code>const randomNumber = Math.floor(Math.random() * 53) + 1;
  const backimage = `./assets/b${randomNumber}.jpg`;
  
  export default function App() {
  
    return (
      &lt;SafeAreaView style={styles.container}&gt;
        &lt;ImageBackground source={require(backimage)} style={styles.image}&gt;
         &lt;Text&gt;Hello World&lt;/Text&gt;
        &lt;/ImageBackground&gt;
      &lt;/SafeAreaView&gt;
    );
  }
  </code></pre>
  <p>I tried the randomNumber and backimage on codepen and it work as expected but not react native.</p>
  <p>I also tried hard code the backimage = <code>./assets/b1.jpg</code> and it also worked well, but not when I used this:  const backimage = <code>./assets/b${randomNumber}.jpg</code>;</p>
  <p>I am not sure if expo supports string interpolation. Many thanks in advance and greatly appreciated. Thanks again.</p>