title: React Native: Change the Entry file path index.android.js to specified custom file path
body: <p>I need to change the Entry file path to <strong>src/XXXApp.android.js</strong> instead of pointing to default index.android.js file. I want to keep the JS file in seperate ./src folder. </p>
  
  <p>So that I made the change in <strong>./android/app/build.gradle</strong> like   </p>
  
  <pre><code> project.ext.react = [
      bundleAssetName: "src/XXXApp.android.bundle",
      entryFile: file("../../src/XXXApp.android.js"),
      root: "../../../../",
      inputExcludes: ["android/**", "./**"]
   ]
  </code></pre>
  
  <p>and in <strong>.\node_modules\react-native\react.gradle</strong> file like</p>
  
  <pre><code>def bundleAssetName = config.bundleAssetName ?:"src/XXXApp.android.bundle"
  def entryFile = config.entryFile ?: "src/XXXApp.android.js"
  </code></pre>
  
  <p>But development package server always pointing to <strong>localhost:8081/index.android/bundle.</strong> . Manually i tried the URL: <strong>localhost:8081/src/XXXApp.android.bundle</strong> and it retrieve the data.
  But in device debug loadJs always try the <strong>localhost:8081/index.android/bundle.</strong></p>
  
  <p>Please share the solution, proper place to update the entry file config for android. Appreciate in advance for your valuable solution.</p>