morsdyce/mimic

react-native android device

Razzwan opened this issue · 2 comments

I try to use mimic with react-native and android device:

  1. install mimic-remote and mimic
  2. add this strings to project:
const connect = require('mimic/react-native').default
connect({ host: 'localhost', port: 5000 })
  1. start mimic-remote with command:
    mimic-remote
  2. add port to listen by device:
    adb reverse tcp:5000 tcp:5000

Result is: mimic is available from web interface with route localhost:5000 but when I try to use it I catch the error:

Can you help me?

Hi @Razzwan
Sorry for the late response, saw this just before a 24 hours flight and then forgot to reply as it took me some time to recover from jet lag :)

The issue is missing the error, is it unable to connect to mimic remote error?
I've had some issues before with android react-native apps where I needed to enable a few permissions in the app manifest before it could work (probably related to networking as we use web sockets).

I'll try to give it a shot in the next few days and see if I can see an issue and how to resolve it.

Thanks!

@morsdyce
Any idea can i fix this issue manually?