From e8e525cfd39d96f79bbf3525d42a0ffa4ffba69e Mon Sep 17 00:00:00 2001 From: thecodrr Date: Fri, 5 Jul 2019 20:17:16 +0500 Subject: [PATCH 1/2] Remove unnecessary flag when running JS server This removes the --projectRoot flag in launchPackager.bat as it was removed and unnecessary fixing bundler not opening when `yarn react-native run-android` is run. --- scripts/launchPackager.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/launchPackager.bat b/scripts/launchPackager.bat index b6e8c583d1a62e..d33f31ee60032d 100644 --- a/scripts/launchPackager.bat +++ b/scripts/launchPackager.bat @@ -6,6 +6,6 @@ @echo off title Metro Bundler call .packager.bat -node "%~dp0..\cli.js" --projectRoot ../../../ start +node "%~dp0..\cli.js" start pause exit From 512ceadb015755b49ad3ffff951912163f880be0 Mon Sep 17 00:00:00 2001 From: thecodrr Date: Fri, 5 Jul 2019 20:34:58 +0500 Subject: [PATCH 2/2] Change dir to project root before packager start --- scripts/launchPackager.bat | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/launchPackager.bat b/scripts/launchPackager.bat index d33f31ee60032d..83bfb8dc138a57 100644 --- a/scripts/launchPackager.bat +++ b/scripts/launchPackager.bat @@ -6,6 +6,7 @@ @echo off title Metro Bundler call .packager.bat +cd ../../../ node "%~dp0..\cli.js" start pause exit