mirror of
https://github.com/status-im/react-native.git
synced 2025-02-20 13:18:07 +00:00
Update projectRoot in launchPackager.bat (#24115)
Summary: `launchPackager.bat` starts metro server but does not pass projectRoot to it. So metro server starts in the wrong directory, It is because `startServerInNewWindow` pass `react-native` directory instead of `projectRoot` in the third argument of `spawn()` in `runAndroid.js` Its working for people See https://github.com/facebook/react-native/issues/23908#issuecomment-475889443 [Android] [Fixed] - projectRoot in launchPackager.bat Pull Request resolved: https://github.com/facebook/react-native/pull/24115 Differential Revision: D14597101 Pulled By: cpojer fbshipit-source-id: fb4155b72e35062cfb41fe1b3ecca0e2b4e849ce
This commit is contained in:
parent
581dc3ed21
commit
775553b7da
@ -6,6 +6,6 @@
|
||||
@echo off
|
||||
title Metro Bundler
|
||||
call .packager.bat
|
||||
node "%~dp0..\cli.js" --reactNativePath ../ start
|
||||
node "%~dp0..\cli.js" --reactNativePath ../ --projectRoot ../../../ start
|
||||
pause
|
||||
exit
|
||||
|
Loading…
x
Reference in New Issue
Block a user