- Create a firebase project if not already created.
- Add an android and iOS application to it. REF: https://firebase.google.com/docs/projects/learn-more#setting_up_a_firebase_project_and_adding_apps
- Obtain
google-services.json
andGoogleService-Info.plist
and place them underandroid/app
andios/
respectively.
yarn
- Install all dependencies.
- Start the simulator first.
- Run
yarn android
- Creates a build and installs the app on the simulator. Also starts the metro builder.
1, yarn ios
- Creates a build and installs the app on the simulator. Also starts the metro builder.
cd ios && pod install
- Required only when a Native dependency is added and is required to be linked.
yarn start
- Starts metro builder.
-
To create a debug build, run the following command:
cd android && ./gradlew assembleDebug
After successful completion you can find the apk inapp/build/outputs/apk/debug
. -
To create a release build:
i. Create a signing key. REF: https://developer.android.com/studio/publish/app-signing
ii. Updatebuild.gradle
andgradle.properties
to use key configurations.
iii. Runcd android && ./gradlew assembleRelease
to create apk ORcd android && ./gradlew bundleRelease
to build aab. After successful completion you can find the apk inapp/build/outputs/apk/release
which can be directly published to play store.
- Open xcode.
- Select generic ios device in the build target (top left menu).
- Make sure you have a development team added to xcode and required certificates from apple developer account.
- Click on
Product->Archive
. This will bundle the application and prompt for automatic signing of the app. - After signing the app, upload option will be available to directly upload the apk to store.