android: fix React packager not working on debug builds on a device
This commit is contained in:
parent
8b5b112c6a
commit
73b6a7a134
@ -14,6 +14,7 @@ if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then
|
|||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
adb reverse tcp:8081 tcp:8081
|
||||||
CMD="${THIS_DIR}/../../node_modules/react-native/scripts/launchPackager.command"
|
CMD="${THIS_DIR}/../../node_modules/react-native/scripts/launchPackager.command"
|
||||||
if [[ `uname` == "Darwin" ]]; then
|
if [[ `uname` == "Darwin" ]]; then
|
||||||
open -g "${CMD}" || echo "Can't start packager automatically"
|
open -g "${CMD}" || echo "Can't start packager automatically"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user