zalmoxisus / remote-redux-devtools

Redux DevTools remotely.
http://zalmoxisus.github.io/monitoring/
MIT License
1.81k stars 139 forks source link

Not working on React Native iOS physical device #115

Closed hyperh closed 6 years ago

hyperh commented 6 years ago

It's working for an Android physical device, but doesn't seem to work for an iOS physical device. I've started the remotedev server with:

// package.json
"redux-remotedev": "remotedev --hostname=localhost --port=9000",

yarn run redux-remotedev

Here's my code for the devTools enhancer.

import { composeWithDevTools } from 'remote-redux-devtools';
import { Platform } from 'react-native';

const hostname = {
  android: 'localhost',
  ios: `192.168.0.0`
};

const composeEnhancers = composeWithDevTools({
  realtime: true,
  hostname: hostname[Platform.OS],
  port: 9000
});

export default composeEnhancers;
hyperh commented 6 years ago

Nvm, figured it out.

For ios have to do

remotedev --hostname=192.168.0.0 --port=9000

Then navigate in my browser to 192.168.0.0:9000.