On React-Native, how can I know if \"Debug JS Remotely\"
is enabled?
I tried looking in RN docs and various NPM packages, but couldn\'t find out how...
So, any of the following answers didn't work for me...
I found out that the location pathname changes to /debugger-ui
on global object:
if (global.location && global.location.pathname.includes('/debugger-ui')) {
Alert.alert('Remote debug is on');
} else {
Alert.alert('Remote debug is off');
}
Working on RN 0.59.