Created
August 27, 2019 15:52
-
-
Save Gustavo-Kuze/cf043dcce7aea87d099e15af563005de to your computer and use it in GitHub Desktop.
como usar a API localhost com react native debugger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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