Prerequisites
Node setup, at least version 18.14.0:
nvm install 18.14.0
nvm use 18.14.0
React Native setup (from https://facebook.github.io/react-native/docs/getting-started.html)
- install nodejs (https://nodejs.org/en/download/package-manager/)
- install watchman (https://facebook.github.io/watchman/docs/install.html)
- install yarn (https://yarnpkg.com/lang/en/docs/install)
- install react native cli:
npm install -g react-native-cli
- Install nvm (https://github.com/creationix/nvm)
Android
- make sure the Android SDK and Android Studio is properly installed
- if you have problems with AndroidX import than run:
npx jetify -r
Ensure you have a Java Development Kit (JDK) in a version >= 17, with JAVA_HOME pointing to that JDK.
Change to the android/ folder and run
./gradlew assembleDevDebug
for the app-dev-debug.apk output, or
./gradlew assembleDebug
for the app-live-debug.apk output.
The APKs will be signed using a debug key and can be found under android/app/build/outputs/apk/live/debug.
iOS
- make sure XCode and XCode command line tools are properly installed
- install cocoapods (https://guides.cocoapods.org/using/getting-started.html)
$ sudo gem install cocoapods
- install cocoapods
cd ios
pod install
- install node modules
yarn install
- Build and run the apps via Android Studio or Xcode