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

This commit is contained in:
Saúl Ibarra Corretgé
2019-06-18 14:51:44 +02:00
committed by Saúl Ibarra Corretgé
parent 8b5b112c6a
commit 73b6a7a134
+1
View File
@@ -14,6 +14,7 @@ if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then
exit 2
fi
else
adb reverse tcp:8081 tcp:8081
CMD="${THIS_DIR}/../../node_modules/react-native/scripts/launchPackager.command"
if [[ `uname` == "Darwin" ]]; then
open -g "${CMD}" || echo "Can't start packager automatically"