Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-native android device #243

Open
Razzwan opened this issue May 12, 2017 · 2 comments
Open

react-native android device #243

Razzwan opened this issue May 12, 2017 · 2 comments

Comments

@Razzwan
Copy link

Razzwan commented May 12, 2017

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?

@morsdyce
Copy link
Owner

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 morsdyce added the bug label May 15, 2017
@wuchangming
Copy link
Contributor

@morsdyce
Any idea can i fix this issue manually?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants