title: How can I export images path with require() from one index.js file in react naitve?
body: <p>I want to export all images from one file which index.js so that If in future I have to change the path of image then I have to only make changes in one file.</p>
  <p>like this:</p>
  <pre><code>export {default as avatar} from './avatar.png';
  export {default as career} from './PsychoScreenImages/career.jpeg';
  export {default as application} from './redeemIcons/application.jpeg';
  export {default as featured} from './redeemIcons/featured.jpeg';
  
  </code></pre>
  <p>But I can't do like this <code>require(avatar)</code> as it requires the only a path. So, How can I export and import images from just one js file?</p>