From 003dbaa3d3feb622f13c2a180e97edef5fced6ec Mon Sep 17 00:00:00 2001 From: Kuchitama Date: Fri, 30 Nov 2018 17:27:53 -0800 Subject: [PATCH] Accept node arguments when iOS app is built (#22423) Summary: Fixes #22421 If this PR fixes an issue, type "Fixes #issueNumber" to automatically close the issue when the PR is merged. _Pull requests that expand test coverage are more likely to get reviewed. Add a test case whenever possible!_ Pull Request resolved: https://github.com/facebook/react-native/pull/22423 Differential Revision: D13287099 Pulled By: TheSavior fbshipit-source-id: e4ac0fb930107dde092541fd17d4c81907c8cc34 --- scripts/react-native-xcode.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/react-native-xcode.sh b/scripts/react-native-xcode.sh index 98ba523aaa2..fc842ba006c 100755 --- a/scripts/react-native-xcode.sh +++ b/scripts/react-native-xcode.sh @@ -82,6 +82,8 @@ fi [ -z "$NODE_BINARY" ] && export NODE_BINARY="node" +[ -z "$NODE_ARGS" ] && export NODE_ARGS="" + [ -z "$CLI_PATH" ] && export CLI_PATH="$REACT_NATIVE_DIR/local-cli/cli.js" [ -z "$BUNDLE_COMMAND" ] && BUNDLE_COMMAND="bundle" @@ -106,7 +108,7 @@ type "$NODE_BINARY" >/dev/null 2>&1 || nodejs_not_found BUNDLE_FILE="$DEST/main.jsbundle" -"$NODE_BINARY" "$CLI_PATH" $BUNDLE_COMMAND \ +"$NODE_BINARY" $NODE_ARGS "$CLI_PATH" $BUNDLE_COMMAND \ $CONFIG_ARG \ --entry-file "$ENTRY_FILE" \ --platform ios \