1. ngrox 설치
// window powershell 관리자모드 실행
choco install ngrok
  1. 다음 명령어를 통해 로컬 서버 포트를 열어주기
 ngrok http 8080
 
 // 결과
 ngrok                                                                                                   (Ctrl+C to quit)                                                                                                                        Sign up to try new private endpoints <https://ngrok.com/new-features-update?ref=private>                                                                                                                                                          Session Status                online                                                                                    Account                       [email protected] (Plan: Free)                                                          Version                       3.20.0                                                                                    Region                        Japan (jp)                                                                                Web Interface                 <http://127.0.0.1:4041>                                                                     Forwarding                    <https://637e-211-192-210-238.ngrok-free.app> -> <http://localhost:8080>                                                                                                                                              Connections                   ttl     opn     rt1     rt5     p50     p90                                                                             0       0       0.00    0.00    0.00    0.00   

https://637e-211-192-210-238.ngrok-free.app 와 같이 생성된 URL로 로컬 서버 접속 가능

  1. React Native Axios 통신에서 base url 설정 및 요청 전송