forked from react-native-webview/react-native-webview
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f9b9d3c
commit e34f756
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#! /bin/bash | ||
|
||
# Node installed? | ||
if ! [ -x "$(command -v node)" ]; then | ||
echo 'Error: node is not installed.' >&2 | ||
|
||
if ! [ -x "$(command -v brew)" ]; then | ||
echo 'Go here to install: https://nodejs.org/en/download/' | ||
fi | ||
|
||
if [ -x "$(command -v brew)" ]; then | ||
echo 'You have Homebrew installed, so run "brew install node".' | ||
fi | ||
|
||
exit 1 | ||
fi | ||
|
||
# React Native installed? | ||
if ! [ -x "$(command -v react-native)" ]; then | ||
echo 'Error: React Native is not installed.' >&2 | ||
echo 'Go here: https://facebook.github.io/react-native/docs/getting-started.html' >&2 | ||
echo 'Use the "Building Projects With Native Code" option.' | ||
exit 1 | ||
fi | ||
|
||
# TODO: Automate setup on new machines |