Follow react native setup guide
Run
npm install
npx react-native link
Android
https://s-pace.github.io/react-native/docs/signed-apk-android.html
iOS
Install dependencies
cd ios && pod install
Copy template for each environment
cp .env.dist .env.sandbox
cp .env.dist .env.development
cp .env.dist .env.production
Then edit the variables according to your setup
iOS
npm run ios
To choose specific target
npm run ios -- --simulator="iPhone SE (3rd generation)"
Troubles with M1/M2 chips, run:
arch -x86_64 npm run ios
Android
npm run android
Web
npm run web
npm run test
Run specific tests
npm run test ./tests/utils/validationUtils.test.js
npm run test ./tests/utils/*.test.js
- Clean gradle
cd android & ./gradlew clean
- Clear metro cache
npm run cache:clear
- Run
rm -rf android/app/src/main/res/drawable-*
- Then open folder android in Android Studio and build project
- Select Build/Generate signed APK to build release
- Install pods
npx react-native link
cd ios && pod install
- Add fonts to assets/fonts
- Add font file names in
Info.plist
underUIAppFonts
then run
npx react-native-asset
before building the app
When cloning this repo you will have to run: git submodule update --init
to initialize the peach-api submodule.