Skip to content

Commit cfdd04f

Browse files
janicduplessisFacebook Github Bot 0
authored andcommitted
Launch the packager with react-native run-android on Windows
Summary: Adds support for launching the packager in a new window on Windows. **Test plan (required)** Tested that the packager is launched in a completely independent process. This means that exiting the `react-native run-android` command should not close the packager window and it should exit properly when completed even if the packager window is still opened. Pretty much made sure it behaves exactly like on mac. Also tested that an error in the packager will not close the window immediately to show the error stack trace. Closes facebook/react-native#7129 Differential Revision: D3240628 Pulled By: mkonicek fb-gh-sync-id: 007582250536481d2b2376f9a201f8f415fc1080 fbshipit-source-id: 007582250536481d2b2376f9a201f8f415fc1080
1 parent 17726e1 commit cfdd04f

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

launchPackager.bat

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
:: Copyright (c) 2015-present, Facebook, Inc.
2+
:: All rights reserved.
3+
::
4+
:: This source code is licensed under the BSD-style license found in the
5+
:: LICENSE file in the root directory of this source tree. An additional grant
6+
:: of patent rights can be found in the PATENTS file in the same directory.
7+
8+
@echo off
9+
title React Packager
10+
node "%~dp0..\local-cli\cli.js" start
11+
pause
12+
exit

0 commit comments

Comments
 (0)