title: Proxy configuration on Android Emulator for React Native project
body: <p>I am working on a React Native project under a corporate proxy. How can I set it properly so that I can build the application (<code>react-native run-android</code> or <code>Double R</code> for reloading) and having access to internet on the device ?</p>
  
  <p>PS : I'm using Windows and executing my code on a Android Emulator from Android Studio.</p>
  
  <p>I tried multiple things ( <a href="https://medium.com/@Charles_Stover/create-a-react-native-app-on-an-android-emulator-1c0d94f288ae" rel="nofollow noreferrer">https://medium.com/@Charles_Stover/create-a-react-native-app-on-an-android-emulator-1c0d94f288ae</a>, ... ):</p>
  
  <p>Without any configuration, the build works find but using <strong>fetch</strong> always returns a timeout (and accessing to chrome application, I do not have access to internet).</p>
  
  <p>I configured the proxy in the wifi of the device (<code>Settings &gt; Network &amp; Internet &gt; Wi-Fi &gt; AndroidWifi &gt; Modify Network &gt; Set Proxy</code>)</p>
  
  <ul>
  <li>Proxy <code>Manual</code></li>
  <li>hostname <code>proxy.company.int</code></li>
  <li>port <code>80</code></li>
  <li>bypass proxy for <code>10.x.y.z, 192.168.x.y, localhost, *.local</code></li>
  </ul>
  
  <p>I can access to internet (both in the previously built application and with Chrome) but could not either reload the application or rebuild it (a white screen appears).</p>
  
  <p>I tried a lot of different things for no_proxy (based on <strong>ipconfig</strong> which gave me 2 IPs, one private (10.x.y.z) and one public (192.168.x.y). None of them worked so far.</p>
  
  <p>I also tried to configure the parameters of <code>Android Studio &gt; File &gt; Settings &gt; Appearance &amp; Behaviour &gt; System Settings &gt; HTTP Proxy</code> with the same config, without good results.</p>
  
  <p>I also tried to configure the parameters of the device (not the wifi directly but the options in the toolbar next to the emulated device) : <code>... &gt; Settings &gt; Proxy &gt; Use Android Studio HTTP proxy settings / no proxy / manual proxy configuration</code>.</p>
  
  <p>Environment :</p>
  
  <p>Windows 10
  React-native 0.55.4
  Android Studio 2.3.3</p>
  
  <p>Thanks in advance</p>