Quick Beginner’s Guide to Manually Deploy React Native Apps

Quick Beginner’s Guide to Manually Deploy React Native Apps

Overview

Imagine building a shiny new experimental app on React Native and wanting to get it in the hands of your beta testers or excellent audience in your newsletter, manually bundling and deploying to App stores without setting up fancy deployment pipelines might save you a ton of headaches.

This deployment involves manual bundling of both android & iOS versions on Android Studio and Xcode.

Android Deployment

Deploying of android bundle requires the following steps on Android Studio:

  1. Locate and open android > app > bundle.gradle and update the versionName and versionCode on your code editor.
  1. Open Android Studio and change Active Bundle Variants from debug to release on each of the libraries/packages listed within the bundle variants tab
  1. After each library/package bundle is on release without errors, go to Build > Build Bundles/APKS > Build Bundle
  1. After the release bundle is finished without errors, locate the bundle file in android > app > build > outputs > bundle > release > app-release.abb
  1. Contact admin to upload the bundle to google play console.

iOS Deployment

Deploying of iOS bundle requires archiving the bundle on Xcode with these steps:

  1. Open Xcode and go to info.plist

a. increase the bundle version (e.g 21 → 22) and bundle version string (short) (e.g 11.21 → 11.22)

  1. Change the active device to Any iOS Device (arm64, armv7)
  1. Go to product > scheme > edit scheme and change the option from debug to release
  1. After closing the edit scheme dialog, select product > archive this would run a production bundle of the app.
  1. After the bundle is complete, the archives window becomes active, select the archive version and click distribute, a dialogue screen below pops up. Walkthrough next and select the checkbox with (App Store Connect)(Upload)
  1. After the upload progress is complete, notify admins to distribute the app on the Apple Developer store to TestFlight.

Over The Air Update (OTA)

Overview

Over-the-air update or OTA makes it possible for code updates, and bug fixes to be deployed to React Native apps without needing a new redeployment to the app stores. JavaScript code logic, Javascript-only libraries, and assets can typically be deployed via OTA with the exception of native codes in android or iOS folders or any library that requires native linking or configurations on the native folders.

Let’s say you’ve got all of your app logic in an src directory and your latest round of updates has only made changes inside that directory. That means you most likely can ship that update out over the air!

If you’re only modifying your JavaScript or image assets, it means that information can be bundled up and shipped out over the air because all of the underlying native bindings are the same as they were before, your interaction with them is the only thing that has changed.

Setup

  1. Create account https://appcenter.ms
  2. Request for Example app access
  3. Install codepush CLI

Over The Air Update Deploy (Android)

appcenter codepush release-react -a Example-Org/example-android -d Production

Over The Air Update Deploy (iOS)

appcenter codepush release-react -a Example-Org/example-ios -d Production

Note: Commit before running the deploy commands.

Further Reading: https://medium.com/@vinod8812/integrate-codepush-with-react-native-for-over-the-air-app-update-bb200683a173

https://docs.microsoft.com/en-us/appcenter/distribution/codepush/

Send money globally

.svg)
Send money to Algeria

.svg)
Send money to Angola
.svg)
Send money to Benin

.svg)
Send money to Botswana
.svg)
Send money to Burkina Faso
.svg)
Send money to Burundi
.svg)
Send money to Cabo Verde
.svg)
Send money to Cameroon
.svg)
Send money to Chad
.svg)
Send money to China
.svg)
Send money to Comoros
.svg)
Send money to Congo
.svg)
Send money to Djibouti
.svg)
Send money to Egypt
.svg)
Send money to Equatorial Guinea
.svg)
Send money to Eritrea
.svg)
Send money to Eswatini
.svg)
Send money to Gabon
.svg)
Send money to Gambia
.svg)
Send money to Ghana
.svg)
Send money to India
.svg)
Send money to Ivory Coast
.svg)
Send money to Kenya
.svg)
Send money to Lesotho
.svg)
Send money to Liberia
.svg)
Send money to Madagascar
.svg)
Send money to Malawi
.svg)
Send money to Mauritania
.svg)
Send money to Mauritius
.svg)
Send money to Morocco
.svg)
Send money to Mozambique
.svg)
Send money to Namibia
.svg)
Send money to Niger
.svg)
Send money to Nigeria
.svg)
Send money to Pakistan
.svg)
Send money to Rwanda
.svg)
Send money to Sao Tome and Principe
.svg)
Send money to Senegal
.svg)
Send money to Seychelles
.svg)
Send money to Sierra Leone
.svg)
Send money to Tanzania
.svg)
Send money to Togo
.svg)
Send money to Tunisia
.svg)
Send money to Uganda
.svg)
Send money to Zambia

Ask AI about Afriex

.png)](https://gemini.google.com/share/76926bec7471) .png)](https://www.perplexity.ai/search/explain-how-afriex-works-for-s-eJxfzzgUSKu3hR0oC2_ytA#0)