forked from AccessMap/accessmap-react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·24 lines (19 loc) · 727 Bytes
/
Copy pathsetup.sh
File metadata and controls
executable file
·24 lines (19 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Run this script in the project home directory.
# You should already have npm and react-native-cli installed.
# You might need to already have your android device or emulator open before you run this.
# Fresh-install project dependencies
rm -rf node_modules;
npm i;
npx jetify;
# Modify android folder and build project
chmod 755 ./android/gradlew;
alias changeToAndroidFolder='cd ./android'
changeToAndroidFolder;
./gradlew clean;
# Run the project on an Android device or emulator
# If this task fails, try uninstalling the app if it already exists on the phone.
npm run android;
# To run on IOS default device,
# npm run ios;
# To run on a physical device of your choice
# react-native run-ios --device="Jay's iPhone"