Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add helper scripts and update help messages #29

Merged
merged 1 commit into from
Mar 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions 1_start_react.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
TOP="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

cd $TOP

npm install
react-native start
6 changes: 6 additions & 0 deletions 2_start_android_app.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
TOP="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

cd $TOP

npx react-native run-android

8 changes: 4 additions & 4 deletions dev_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ echo
echo " Run Android Studio then:"
echo " * Select 'Configure > AVD Manager' at the bottom"
echo " * Create and run a virtula device, such as a Pixel 2"
echo
echo " In a terminal run:"
echo " $ cd ~/mobileapp/"
echo " $ react-native start"
echo " $ ~/mobileapp/1_start_react.sh"
echo " In a second terminal:"
echo " $ cd ~/mobileapp/"
echo " $ npx react-native run-android"
echo " $ ~/mobileapp/2_start_android_app.sh"
echo " You can edit files and repeat step 2 again as necessary to debug."