title: Image source error in React Native: require expect exactly 1 literal string
body: <p>Hi I have iumages in local path in react native and I'm trying to provide path as</p>
  
  <pre><code> &lt;ListItem
      roundAvatar
      avatar={&lt;Avatar
          rounded
          source={require( '../../../public/images/'+props.item.ImageName+'.png')}
          title={props.item.cat_name}
      /&gt;}
      onPress={() =&gt; props.subscreen(props.item._id)}
      key={props.item._id}
      title={props.item.cat_name}
  /&gt;
  </code></pre>
  
  <p>But it shows error </p>
  
  <p><a href="https://i.stack.imgur.com/ngNam.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ngNam.png" alt="enter image description here"></a></p>
  
  <p>on printing image path on console it shows string only. What can be other way around or where is mistake?</p>