Prerequisites
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
Change to the android/ folder and run
./gradlew assembleDebug
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