react-native/Libraries/Core/Devtools
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
..
__tests__ Adding @email tags to most of the tests 2017-11-02 06:25:03 -07:00
getDevServer.js Reorganize core JS files 2016-10-11 10:14:28 -07:00
openFileInEditor.js Reorganize core JS files 2016-10-11 10:14:28 -07:00
parseErrorStack.js @allow-large-files Flow v0.54.0 2017-09-06 03:33:43 -07:00
setupDevtools.js Set host of development server for setupDevtools 2017-12-29 07:55:41 -08:00
symbolicateStackTrace.js Run eslint --fix 2017-10-09 17:46:44 -07:00