this template contains react": "17.0.1", react native: "0.64.2", redux-thunk, firebase-notifications, firebase-crashlytics, bottom-tabs, drawer, and vector icons.
You'll need Node, Yarn and Watchman installed for iOS on MacBook (brew install watchman
)
- iOS development environment:
Follow the official docs here. Select "React Native CLI Quickstart" tab
Download Xcode version 13. You can find all available versions of Xcode at Apple's Developer Portal 🔐.
Ask your mentor to add you on the firebase.console to be able to release.
- Android development environment:
Follow the official docs here. Select "React Native CLI Quickstart" tab
- Create a android virtual device:
Create a virtual device on which to run the Android app.
yarn install
cd ios && pod install && cd ..
Start the react-native bundler:
yarn start
Ask for your apple developer account to be added on the project and login with your apple id under settings/accounts/apple Id
Open the app in Xcode:
open Vendor.xcworkspace
From Xcode, run the app by hitting Product > Run
(or ⌘R). This will start the Vendor app in an iOS simulator, pointed at Vendor staging environment.
yarn android
This will start the Vendor app in an Android emulator, pointed at Vendor staging environment.
We use Xcode's auto-codesigning. It should magically "just work" if you log in to Xcode with an iTunes account
which is on the Ali Rehman
team. When you connect an iPhone to your machine, Xcode will prompt you to join a team, If you have to choose a team, choose Ali Rehman
.
- On your Android device go to Settings > About Phone
- Find the 'Build number' menu item and tap it 5 times to enable developer mode.
- Now go to Settings > System > Developer Options, and turn on 'USB Debugging'
- Connect your device to your computer via USB cable. After a moment the device should show a prompt for you to allow USB debugging for your computer. Press yes.
- After that run
yarn android
from within the eigen directory. This will build the app, install it on your device, and run it.