Closed hyperh closed 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;
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.
192.168.0.0:9000
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:
Here's my code for the devTools enhancer.