Skip to content

Instantly share code, notes, and snippets.

@Gustavo-Kuze
Created August 27, 2019 15:52
Show Gist options
  • Save Gustavo-Kuze/cf043dcce7aea87d099e15af563005de to your computer and use it in GitHub Desktop.
Save Gustavo-Kuze/cf043dcce7aea87d099e15af563005de to your computer and use it in GitHub Desktop.
como usar a API localhost com react native debugger
1. Abra o menu de desenvolvimento do app (CTRL + M no emulador)
2. vá para as opções de desenvolvedor (Dev Settings)
3. Selecione "Debug server host & port for device"
4. digite 127.0.0.1:8081 (ou a porta customizada do seu APP)
5. abra um terminal na pasta do projeto da API e digite o comando: adb reverse tcp:8000 tcp:8000 (ou a porta da sua API)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment