Jhen-Jie Hong fa574c6092 Set host of development server for setupDevtools
Summary:
Related to #15126, and this would be useful for use React DevTools on real device without modify `setupDevtools.js`.

In Android emulator, the host of `SourceCode.scriptURL` is same with `PlatformConstants.ServerHost` so we can just replace it.

* Tested on iOS device with [react-devtools](https://github.com/facebook/react-devtools/tree/master/packages/react-devtools) package.
* Tested on Android emulator, the `getDevServer` module got the correctly hostname so that don't need `adb reverse`.

[ENHANCEMENT] [setupDevtools] Set host of development server for setupDevtools
Closes https://github.com/facebook/react-native/pull/15547

Differential Revision: D6544980

Pulled By: javache

fbshipit-source-id: a286874bcef0501c5d2e0be2251d58c236a5534a
2017-12-29 07:55:41 -08:00
..
2017-12-13 16:19:21 -08:00
2017-12-19 19:46:06 -08:00
2017-12-06 17:34:26 -08:00
2017-12-21 12:02:32 -08:00
2016-11-02 12:29:15 -07:00
2017-09-08 14:46:14 -07:00
2017-09-21 15:01:52 -07:00
2017-12-06 17:34:26 -08:00
2017-11-10 21:15:48 -08:00
2017-12-19 20:14:00 -08:00
2017-12-18 18:31:19 -08:00
2017-09-06 03:33:43 -07:00
2017-10-09 17:46:44 -07:00
2017-10-09 17:22:35 -07:00
2017-09-06 03:33:43 -07:00