Last active
March 7, 2022 14:03
-
-
Save woffleloffle/4e40d974ca0112031f8a909be5d28a22 to your computer and use it in GitHub Desktop.
Silence "nw_connection_get_connected_socket" warnings in React Native (expo)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
#if RCT_DEV | |
[bridge moduleForClass:[RCTDevLoadingView class]]; | |
+ | |
+ NSURL * jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; | |
+ [[RCTBundleURLProvider sharedSettings] setJsLocation:jsCodeLocation.host]; | |
#endif | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment