소스 검색

android: fix React packager not working on debug builds on a device

master
Saúl Ibarra Corretgé 6 년 전
부모
커밋
73b6a7a134
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1
    0
      android/scripts/run-packager.sh

+ 1
- 0
android/scripts/run-packager.sh 파일 보기

@@ -14,6 +14,7 @@ if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then
14 14
     exit 2
15 15
   fi
16 16
 else
17
+    adb reverse tcp:8081 tcp:8081
17 18
     CMD="${THIS_DIR}/../../node_modules/react-native/scripts/launchPackager.command"
18 19
     if [[ `uname` == "Darwin"  ]]; then
19 20
         open -g "${CMD}" || echo "Can't start packager automatically"

Loading…
취소
저장