HKUST Delivery APP
https://www.youtube.com/watch?v=cTqNM9W9eps
node -v && npm -v # your nodejs installation has problem if has error
npm i -g react-native-cli yarn # install react native cli globally, alongside with yarn
-
- clone this project with Github Desktop or with command
git clone git@github.com:IniZio/USTFetch.git
- run
cd USTFetch && yarn
to install dependencies
- clone this project with Github Desktop or with command
-
-
Install Expo XDE and add the project
-
Open the app in Android Emulator / Real device:
-
Real device (recommended)
- Install 'Expo' app on your device
-
GenyMotion (better than android studio) 2. Install Genymotion, will need to register an account 3. Create a device (model must be
Android 6.0 (Marshmallow)
or above), and start the emulator -
Android studio
- go here : https://developer.android.com/studio/install.html to download
- In installer, select 'custom' and select everything, then continue the install process
- Tools -> android -> android sdk -> 'SDK Platforms' tab, expand
Android 6.0 (Marshmallow)
, ciick:
- `Google APIs` - `Android SDK Platform 23` - `Intel x86 Atom System Image` - `Intel x86 Atom_64 System Image` - `Google APIs Intel x86 Atom_64 System Image`
- Tools -> android -> android sdk -> 'SDK Tools' tab, click 'Show Package Details', expand Android SDK Build Tools, click
Android SDK Build-Tools 23.0.1
. - Click 'Apply'
- Set up
ANDROID_HOME
environment variable:
Windows' Control Panel -> System and Security -> System -> Change settings -> Advanced System Settings -> Environment variables -> New, enter
ANDROID_HOME
for 'variable name', enterC:\Users\{YOUR USERNAME}\AppData\Local\Android\sdk
- Open android studio, Tools -> android -> android -> AVD manager, create a device (model must be
Android 6.0 (Marshmallow)
or above), and start the emulator
-
-
-
- Start Expo XDE and add this project, then click on it in the list to start the 'server'
- Open in real device / android emulator
- Real device
- Press 'send link' to pass the magical link to your phone, open the link and it will launch the project in the Expo mobile app you just installed
- Android emulator
- Do nothing :), it will install automatically
- Real device
Possible issues;
- watchman error due to user limit in linux: run
./solve.sh
as sudoer No android devices found
error despite having launched android emulator: check if you path contains path to the adb bin, if not then addexport PATH="$HOME/Android/Sdk/platform-tools/adb:$PATH"
to your.profile
file