- nodejs LTS version > 20
- You may need the Android SDK for a virtual app. Xcode is not needed for IOS development.
- Yarn global -
npm install --global yarn
- JDK 20 - For working with gradle [semi-optional]
- Expo Go app
- To be compatible with older versions of expo SDK use: this
Note: Sometimes it is installed automatically if you have the device connected via adb and run the project.
- Expo Go app
Note: Download from app store and connect with the camera app.
PWD: Project Root dir
Step 1: Install all the required packages
yarn set version berry
yarn config set nodeLinker node-modules
yarn install
NOTE: Ensure you remove "packageManager": "[email protected]"
from the last line of package.json before commit.
Step 2: Make sure either you are running an android/IOS emulator or connected a device.
For more information:
Android Emulator
IOS Emulator
USB connected android device
Step 3: Build and run the program
a. For Android
yarn start --android
b. For IOS
yarn start --ios
c. For Web
yarn start --web
This will start the expo server and you can scan the QR code to run the app on your device.
Press 's' to convert to expo mode
Optionally, you may use the instructions in 'EAS server' to directly use a distribution build.
Note: You will need to be on the same network as the server. Or hack your way in :p
Run yarn prebuild
to generate the android folder.
In the ./android
folder run ./gradlew clean
Then using the presets in eas.json
you may run
eas build --platform android --profile preview3
NOTE for build to be successful in EAS you must add the below to ./android/build.gradle
android {
packagingOptions {
pickFirst '**/libc++_shared.so'
pickFirst '**/libfbjni.so'
pickFirst '**/libcrypto.so'
}
}