Skip to content

Conversation

@asklar
Copy link
Contributor

@asklar asklar commented Oct 26, 2019

Summary:

When running metro on one machine and a react-native app on another, /launch-js-devtools causes the metro process to launch localhost:8081. However, the hostname can be overridden by the --host parameter to react-native start, which because of the hardcoding of localhost, causes the web debugger to not start, breaking the react-native app.

Test Plan:

Manually verified that the RN app can run when running react-native start with both: no params as well as --host

@asklar
Copy link
Contributor Author

asklar commented Oct 26, 2019

The snapshot test failure seems unrelated to my change?

Copy link
Member

@thymikee thymikee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM cc @grabbou

@thymikee thymikee changed the title Properly handle --host param for remote debugging fix: Properly handle --host param for remote debugging Oct 26, 2019
@thymikee thymikee merged commit 5ced833 into react-native-community:master Oct 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants