mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 09:12:02 +00:00
d4cc5b53c7
Summary: * This allows `react-native` to work for users on fedora. * `react-native run-android` was failing because the launch packager script was unable to find packager.sh (see `source` in `man bash`). * This change sets cwd for the dev server when run with `run-android`. Closes https://github.com/facebook/react-native/pull/7316 Differential Revision: D3255866 fb-gh-sync-id: 88f6b18f7c61636ce8fecef77f7f4e60b1d9a637 fbshipit-source-id: 88f6b18f7c61636ce8fecef77f7f4e60b1d9a637
21 lines
516 B
Bash
Executable File
21 lines
516 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Copyright (c) 2015-present, Facebook, Inc.
|
|
# All rights reserved.
|
|
#
|
|
# This source code is licensed under the BSD-style license found in the
|
|
# LICENSE file in the root directory of this source tree. An additional grant
|
|
# of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
# Set terminal title
|
|
echo -en "\033]0;React Packager\a"
|
|
clear
|
|
|
|
THIS_DIR=$(dirname "$0")
|
|
pushd "$THIS_DIR"
|
|
source ./packager.sh
|
|
popd
|
|
|
|
echo "Process terminated. Press <enter> to close the window"
|
|
read
|