[iOS][Improvement] RCTWebSocketExecutor method could guess the devtools host via the ip.txt
file
#15943
Labels
Help Wanted
Issues ideal for external contributors.
Ran Commands
One of our bots successfully processed a command.
Stale
There has been a lack of activity on this issue and it may be closed soon.
Is this a bug report?
Yes (Mostly)
Have you read the Contributing Guidelines?
Yes
Environment
react-native -v
: 0.48.3node -v
: v8.4.0npm -v
: 5.3.0yarn --version
: 0.23.4Steps to Reproduce
RCTWebSocketExecutor
react-devtools host detection.sed -i ''
it all the way... Anyways, I'm using ngrok, so, it's a bit bothersome.RCTBundleURLProvider
already has guessPackagerHost method which usesip.txt
file in the main bundle, we could use that to pass the hostname for theRCTWebSocketExecutor
.Expected Behavior
Less regex's and manual
RCTWebSocketExecutor
patching.Actual Behavior
Official documentation states explicitly to patch the
RCTWebSocketExecutor.m
file which isn't a great way of handling such things.The text was updated successfully, but these errors were encountered: