mirror of
https://github.com/status-im/react-native.git
synced 2025-02-24 07:08:27 +00:00
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
12 lines
316 B
Batchfile
12 lines
316 B
Batchfile
:: Copyright (c) Facebook, Inc. and its affiliates.
|
|
::
|
|
:: This source code is licensed under the MIT license found in the
|
|
:: LICENSE file in the root directory of this source tree.
|
|
|
|
@echo off
|
|
title Metro Bundler
|
|
call .packager.bat
|
|
node "%~dp0..\cli.js" --reactNativePath ../ --projectRoot ../../../ start
|
|
pause
|
|
exit
|