title: Loading bundled resources in Android Native Module - by request from React Native
body: <p>I created an Android native module that composes an image from several other image files.</p>
  
  <p>My React Native app invokes said module with the <strong>names</strong> of the images to use.
  They are located in the <code>res/</code> folder, and thus are accessible to the native module. <strong>The module itself calls <code>Resources.getIdentifier(...)</code> to load them.</strong></p>
  
  <p>However, the official documentation has this line under <code>getIdentifier</code>:</p>
  
  <blockquote>
    <p>Note: use of this function is discouraged. It is much more efficient to retrieve resources by identifier than by name.</p>
  </blockquote>
  
  <p><strong>How can the React Native JS code know the resource ID?</strong></p>