About
In react native, this library works great when running on a simulator as localhost will resolve to the host running the packager. However, when running on an actual iOS device, the hostname needs to be the IP Address of the machine running the packager. This can be retrieved through:
import { NativeModules } from 'react-native';
const scriptUrl = NativeModules.SourceCode.scriptURL;
However, there are no options to add the host name into these devtools since by default the native will use localhost:
https://github.com/FormidableLabs/urql-devtools-exchange/blob/3c61033465cd4e40430b6b224f750d332de86532/src/utils/messaging.ts#L21-L30