- 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.jsonandGoogleService-Info.plistand place them underandroid/appandios/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.gradleandgradle.propertiesto use key configurations.
iii. Runcd android && ./gradlew assembleReleaseto create apk ORcd android && ./gradlew bundleReleaseto build aab. After successful completion you can find the apk inapp/build/outputs/apk/releasewhich 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.