A Nutshell Guide to React Native DevOps

This ad is not shown to multipass and full ticket holders
JSNation US
JSNation US 2025
November 17 - 20, 2025
New York, US & Online
See JS stars in the US biggest planetarium
Learn More
In partnership with Focus Reactive
Upcoming event
JSNation US 2025
JSNation US 2025
November 17 - 20, 2025. New York, US & Online
Learn more
Bookmark
Slides
Rate this content

In a nutshell, mobile DevOps best practises for React Native apps, from code to release.

This talk has been presented at React Day Berlin 2022, check out the latest edition of this React Conference.

FAQ

React Native developers face challenges such as managing different requirements, processes, and workflows for iOS and Android platforms, including application signing, complex configurations, and ensuring proper testing protocols are followed.

Mobile app deployment is more complex because it requires additional steps such as signing the application with certificates, provisioning profiles, and managing secrets before releasing it to app stores, unlike web applications.

To stay competitive, it is recommended to adopt a two-week release cadence for mobile apps, as opposed to releasing every two months, which can be too slow given the fast-paced market environment.

The key components of a mobile CI/CD process include planning, CI/CD strategy, building, testing, beta releases, production releases, and monitoring the mobile apps post-release.

Automation in mobile development helps streamline deployment, releases, and code reviews, allowing developers to focus more on delivering features and less on repetitive tasks, ultimately speeding up the development process and reducing errors.

It is suggested to run unit and UI tests for every code commit to identify and fix issues early in the development process. This 'fail fast' approach helps in shifting testing left and catching bugs before they reach production.

Post-deployment monitoring is crucial for tracking app performance and stability, such as monitoring app crashes. This helps in quickly identifying and resolving issues that might affect user experience.

Cloud-based CI/CD for mobile applications offers benefits such as easy project setup, customizable workflows, seamless code signing, and a clean, tool-inclusive environment that can save time and reduce configuration issues.

Effective beta testing for mobile apps can be implemented using platforms like TestFlight for iOS and Firebase App Distribution for Android, allowing developers to distribute pre-release versions to beta testers and gather valuable feedback.

Moataz Nabil
Moataz Nabil
12 min
02 Dec, 2022

Comments

Sign in or register to post your comment.
Video Summary and Transcription
Today we are discussing the challenges faced by React native developers in mobile deployment. Automation is the key to spending less time on tasks and focusing on delivering features. There is a stage for monitoring mobile apps after release. Differentiating between iOS and Android, there are specific requirements for each. The FASTA file allows for configuring tasks and actions.

1. Mobile Deployment Challenges and Solutions

Short description:

Today we are discussing the challenges faced by React native developers in mobile deployment. Signing the application, complex configuration, testing, slow releases, and inflexible CI are some of the issues. Automation is the key to spending less time on tasks and focusing on delivering features. Mobile DevOps or mobile CICD process can address these challenges.

Hi, everyone. Thanks for having me today. My name is Motez and I'm working as a developer advocate at Bit-Trice. So, mainly, every day I'm helping the mobile developers to trying to figure out what are the challenges that they are facing, especially with cross-platform apps or native apps.

So, today we are talking about the mobile deployment. So, as we know, if you are working with React native apps, you have at the end you have two native applications, iOS and Android. And, as we know, each application required like workflows or steps or configurations so on. So, mainly that React native developers are facing like different requirements and processes and workflows for iOS and Android. So, you need to figure out how you can automatically doing it because you need to sign the application before using it to the App Store. As we know, it's not like the web application. You need to sign your application or certificate or provision profile or like secrets and then to be able to release it to the App Store.

Complex configuration, as we mentioned, testing as well. So, shall we run the UI testing on every request or shall we leave it before release? How we can run it? Which framework we are using? Shall we run the unit and UI test and everything for every request? So, how we can deal with this process? And slow releases as well. So, maybe there's a company is releasing every two months, which is huge. So, because if you are like, you have a business and you have different competitors in the market, which is if you wanted to release a new feature, this is a huge or a longer process to release every two months. So, we need to try to eliminate the process for two weeks at least. Like, two weeks release cadence. And inflexible and fragile CI. So, don't waste your time for fixing the CI server's problems and how we can or every day we are dealing with the different problems with the CI.

So, here, Scott Hanselman from Microsoft, as a program manager, he said like the most powerful tool we have as a developer is automation. Automation is not like UI testing. It's automation for everything. So, it can automate deployment, releases, code review or anything as much as we can, we should automate the process. So, the target is we need to spend less time on task that's slowed down or the developer downs and focus more on delivering the features. Because as we know, the developer hours is the main focus or the most important things for the companies. So, because of this, I believe the process that will fix these issues or these challenges, it will be a mobile DevOps or a mobile CICD like process. So, we started with a CICD strategy and then from the measuring or like planning phase. And then we have the strategy for a CICD. And then we are building and testing or releasing and building our mobile apps. And then we are monitoring our mobile apps.

2. Mobile App Monitoring and Automation

Short description:

There is a stage for monitoring mobile apps after release. Six steps for mobile developer adoption: planning, CICD strategy, building, testing, beta releases, and production releases. Automating the process involves pushing code to a source code repository, triggering the CI server build, and going through the continuous integration process. This includes cloning the code repository, installing dependencies, running static code analysis, unit and integration tests, and checking for issues. An iOS builder is also part of the process.

It's not like we just release it to the App Store. No, there is another stage for monitoring mobile apps. Such for example, if you wanted to monitor the app crashes or the application performance monitoring in general. So, once you release your mobile apps, you have another tool or another process to start reviewing and monitoring the mobile app release.

So, here we have six steps for a mobile developer adoption. As we mentioned, planning, CICD strategy, building, testing, beta releases. This is especially for mobile. Because maybe for web we don't have... maybe sometimes we are speaking in a web deployment about canary deployment or like blue-green. But this is required for mobile apps, which is beta releases that you are releasing to your beta testers to check that everything works fine in your application. And this can be for test flights, for example, for iOS or for Firebase app distribution or for the App Store, for internal channel. And production releases. And then we have a monitoring.

So, here, let's assume this is like the full process. So, I'm trying here to figure out how we can automate this process. So, for example, you just, like, create a code or like push a code. And then to the GitHub or any source code you are using, the request is raised. Maybe you can you have the CI server. And the CI server build is triggered. And then you are going to the continuous integration process, which is you are cloning the code repository, SSH key for, like, accessing the code. And then it starts installing, as we know, React native apps required. So, like, if you are using your ER. Then you can start running the static code analysis. This will be like the first step. Then you can run a unit and integration test. And maybe you will have a coverage report. And then if everything is okay, it'll check bus. So, this is like the first stage. This is for the React native or maybe for the JavaScript or TypeScript application. Then you have an iOS builder.

3. Differentiating between iOS and Android

Short description:

Differentiating between iOS and Android, there are specific requirements for each. Steps include installing dependencies, Xcode build, auto code signing, and running end-to-end UI tests. Early detection of issues in the continuous integration stage allows for quick resolution. The concept of failing fast helps avoid problems in production. For Android, the process includes running the bundle debug task, signing the application, and running UI tests. Continuous deployment presents challenges, and running all tasks sequentially can be time-consuming. Implementing pipelines and using Fastlane are possible solutions.

From here, we start to differentiate between iOS and Android. And as I mentioned, it's totally different requirements. So, for example here, maybe you need to run or install like start installing the KukuBots dependencies, then Xcode build and then auto code signing. There's a mechanism or a step for auto code signing or signing the application automatically. And at the end, you'll have the IP.

Then after that, you can run the end-to-end UI testing. Maybe it can be with Detox, which is the framework that support React native apps or maybe you can use Appium, this is the open source for mobile apps. And then you are uploading the artifacts. Then if everything is okay, so now we are continuously like doing the stages or step by step. And even if we have a problem, let's say we have a problem in the continuous integration stage, maybe in the unit and integration test. This will be useful for the team because in this stage, you found the problem early. So, if you are running UI test or unit test or integration and then it's crashed or you have a problem, then you will figure out in the early stages in the development so we are still in the pull request.

So, you can imagine this issue is the customer find it on the app store or in the application after release the mobile app. So, you need to release another version or another hotfix and you need to do this process again from the scratch. So, this help us to fail fast. So, this is like a concept of fail fast. So, we are failing fast and we are here like moving a shift lift in testing and running is a test in early stages on the code development to avoid any other problem or issues on the life or the production. This is the same for iOS, it's only the different things here, we are using different comments like, for example, for Android, we are assemble or run the bundle debug task which is will give us the application and then we are signing your application, signing our application and then also it will be the same for running the UI test or running the end-to-end test. With continuous deployment we are here, maybe we can run like deploy to the Firebase app store distribution or to Google Play Store. Here, we will find another challenge. So, shall we run all of these things in sequential like run the iOS build first and then run the Android in one workflow? This will be the problem, so maybe it will take time. So now, we need to think about another challenge after we implemented a CICD solution, which is pipelines. So, we can run different workflows in barrel at the same time, for example, let's assume that the first one is a workflow one which was the continuous integration to running a unit of jQuery. So, we can run it first if it's green, so then, we can start the iOS and Android in barrel at the same time, to save our time because now, if we are running this and before releases, this will take time. So, now, we can think about the build pipelines. And also, we have another choice. You can implement or you can use a Fastlane. Anyone here using Fastlane? Okay. So, Fastlane is a Ruby-based file. It's a Ruby configuration file.

4. FASTA File and Mobile DevOps

Short description:

The FASTA file allows for configuring tasks and actions. Different lanes can be used for Android and iOS, with specific tasks for beta testing and deployment. To address challenges, consider using dedicated servers or cloud CI-CD. Cloud CI-CD offers easy project setup, a clean environment, customizable workflows, seamless code signing, and automated testing. Mobile DevOps is a mindset that requires coordination between teams and automation. It is a journey, not a destination.

It's called the FASTA file. So, with FASTA file, you can configure everything as a task or as an action. So, for example, here in Android, in Android section, you can, for example, have, like, submit a new beta to, like, Crashlytics or to Firebase or Crashlytics from Firebase. And for Android, for example, you can have a task, a specific task for uploading it to the test flight for beta testers. So, here is, you can have a task or action. It's called action and that. So, you have different lanes as we find here. So, the description, this is the lane. So, we have a lane is beta and the lane is deployed. And for iOS, we have lane beta as well. So, you can add incrementable number, which is because you are releasing a new build. Or taking screenshots for the metadata or for the App Store and also deploying it to the App Store, you can have like another task for this one.

So, now, to fix this problem or the challenges that we are facing, we need to think about, shall we use like dedicated servers or our infrastructure for CI-CD? As we mentioned previously in the challenges, we have a problem that maybe sometimes we have a flaky like or we have a like configuration issues in the CI server. So, this is usually you need to start thinking about the Cloud CI-CD or cloud continuous integration. Because easy project setup, you can just like clone your project on GitHub and start building it. It really makes the environment especially for mobile, so you can imagine if you have a clean environment and every time you are installing in VM or you are, but if you have a predefined environment is included all the tools that you are using for your mobile app, this will save time for sure. And the customizable workflows, as we know, we have different workflows for iOS and Android, seamless code signing for iOS and Android and automated unit integration and the tests, there are different steps can help you in this process. And distribute react native app was easy.

So at the end, the idea is a mobile DevOps is a mindset. But we need to agree as a team, which process or which platform we need to use. It's a mindset, culture, process, and the tools. CI-CD is a coordination process between the different teams to remove any silos from the operations, development, product, and so on. This automation is a vital part of mobile DevOps. And it's a journey, not a destination. As we know, it's accumulated work during like maybe one year to reach it to this full cycle for the process. And thank you. Thank you.

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

Levelling up Monorepos with npm Workspaces
DevOps.js Conf 2022DevOps.js Conf 2022
33 min
Levelling up Monorepos with npm Workspaces
Top Content
NPM workspaces help manage multiple nested packages within a single top-level package, improving since the release of NPM CLI 7.0. You can easily add dependencies to workspaces and handle duplications. Running scripts and orchestration in a monorepo is made easier with NPM workspaces. The npm pkg command is useful for setting and retrieving keys and values from package.json files. NPM workspaces offer benefits compared to Lerna and future plans include better workspace linking and adding missing features.
Automating All the Code & Testing Things with GitHub Actions
React Advanced 2021React Advanced 2021
19 min
Automating All the Code & Testing Things with GitHub Actions
Top Content
We will learn how to automate code and testing with GitHub Actions, including linting, formatting, testing, and deployments. Automating deployments with scripts and Git hooks can help avoid mistakes. Popular CI-CD frameworks like Jenkins offer powerful orchestration but can be challenging to work with. GitHub Actions are flexible and approachable, allowing for environment setup, testing, deployment, and custom actions. A custom AppleTools Eyes GitHub action simplifies visual testing. Other examples include automating content reminders for sharing old content and tutorials.
Fine-tuning DevOps for People over Perfection
DevOps.js Conf 2022DevOps.js Conf 2022
33 min
Fine-tuning DevOps for People over Perfection
Top Content
DevOps is a journey that varies for each company, and remote work makes transformation challenging. Pull requests can be frustrating and slow, but success stories like Mateo Colia's company show the benefits of deploying every day. Challenges with tools and vulnerabilities require careful consideration and prioritization. Investing in documentation and people is important for efficient workflows and team growth. Trust is more important than excessive control when deploying to production.
Why is CI so Damn Slow?
DevOps.js Conf 2022DevOps.js Conf 2022
27 min
Why is CI so Damn Slow?
Slow CI has a negative impact on productivity and finances. Debugging CI workflows and tool slowness is even worse. Dependencies impact CI and waiting for NPM or YARN is frustrating. The ideal CI job involves native programs for static jobs and lightweight environments for dynamic jobs. Improving formatter performance and linting is a priority. Performance optimization and fast tools are essential for CI and developers using slower hardware.
The Zen of Yarn
DevOps.js Conf 2022DevOps.js Conf 2022
31 min
The Zen of Yarn
Let's talk about React and TypeScript, Yarn's philosophy and long-term relevance, stability and error handling in Yarn, Yarn's behavior and open source sustainability, investing in maintenance and future contributors, contributing to the JavaScript ecosystem, open-source contribution experience, maintaining naming consistency in large projects, version consistency and strictness in Yarn, and Yarn 4 experiments for performance improvement.
Raising the Bar: Our Journey Making React Native a Preferred Choice
React Advanced 2023React Advanced 2023
29 min
Raising the Bar: Our Journey Making React Native a Preferred Choice
Watch video: Raising the Bar: Our Journey Making React Native a Preferred Choice
This Talk discusses Rack Native at Microsoft and the efforts to improve code integration, developer experience, and leadership goals. The goal is to extend Rack Native to any app, utilize web code, and increase developer velocity. Implementing web APIs for React Native is being explored, as well as collaboration with Meta. The ultimate aim is to make web code into universal code and enable developers to write code once and have it work on all platforms.

Workshops on related topic

Introducing FlashList: Let's build a performant React Native list all together
React Advanced 2022React Advanced 2022
81 min
Introducing FlashList: Let's build a performant React Native list all together
Top Content
Featured Workshop
David Cortés Fulla
Marek Fořt
Talha Naqvi
3 authors
In this workshop you’ll learn why we created FlashList at Shopify and how you can use it in your code today. We will show you how to take a list that is not performant in FlatList and make it performant using FlashList with minimum effort. We will use tools like Flipper, our own benchmarking code, and teach you how the FlashList API can cover more complex use cases and still keep a top-notch performance.You will know:- Quick presentation about what FlashList, why we built, etc.- Migrating from FlatList to FlashList- Teaching how to write a performant list- Utilizing the tools provided by FlashList library (mainly the useBenchmark hook)- Using the Flipper plugins (flame graph, our lists profiler, UI & JS FPS profiler, etc.)- Optimizing performance of FlashList by using more advanced props like `getType`- 5-6 sample tasks where we’ll uncover and fix issues together- Q&A with Shopify team
Detox 101: How to write stable end-to-end tests for your React Native application
React Summit 2022React Summit 2022
117 min
Detox 101: How to write stable end-to-end tests for your React Native application
Top Content
Workshop
Yevheniia Hlovatska
Yevheniia Hlovatska
Compared to unit testing, end-to-end testing aims to interact with your application just like a real user. And as we all know it can be pretty challenging. Especially when we talk about Mobile applications.
Tests rely on many conditions and are considered to be slow and flaky. On the other hand - end-to-end tests can give the greatest confidence that your app is working. And if done right - can become an amazing tool for boosting developer velocity.
Detox is a gray-box end-to-end testing framework for mobile apps. Developed by Wix to solve the problem of slowness and flakiness and used by React Native itself as its E2E testing tool.
Join me on this workshop to learn how to make your mobile end-to-end tests with Detox rock.
Prerequisites- iOS/Android: MacOS Catalina or newer- Android only: Linux- Install before the workshop
How to Build an Interactive “Wheel of Fortune” Animation with React Native
React Summit Remote Edition 2021React Summit Remote Edition 2021
60 min
How to Build an Interactive “Wheel of Fortune” Animation with React Native
Top Content
Workshop
Oli Bates
Oli Bates
- Intro - Cleo & our mission- What we want to build, how it fits into our product & purpose, run through designs- Getting started with environment set up & “hello world”- Intro to React Native Animation- Step 1: Spinning the wheel on a button press- Step 2: Dragging the wheel to give it velocity- Step 3: Adding friction to the wheel to slow it down- Step 4 (stretch): Adding haptics for an immersive feel
Deploying React Native Apps in the Cloud
React Summit 2023React Summit 2023
88 min
Deploying React Native Apps in the Cloud
WorkshopFree
Cecelia Martinez
Cecelia Martinez
Deploying React Native apps manually on a local machine can be complex. The differences between Android and iOS require developers to use specific tools and processes for each platform, including hardware requirements for iOS. Manual deployments also make it difficult to manage signing credentials, environment configurations, track releases, and to collaborate as a team.
Appflow is the cloud mobile DevOps platform built by Ionic. Using a service like Appflow to build React Native apps not only provides access to powerful computing resources, it can simplify the deployment process by providing a centralized environment for managing and distributing your app to multiple platforms. This can save time and resources, enable collaboration, as well as improve the overall reliability and scalability of an app.
In this workshop, you’ll deploy a React Native application for delivery to Android and iOS test devices using Appflow. You’ll also learn the steps for publishing to Google Play and Apple App Stores. No previous experience with deploying native applications is required, and you’ll come away with a deeper understanding of the mobile deployment process and best practices for how to use a cloud mobile DevOps platform to ship quickly at scale.
Effective Detox Testing
React Advanced 2023React Advanced 2023
159 min
Effective Detox Testing
Workshop
Josh Justice
Josh Justice
So you’ve gotten Detox set up to test your React Native application. Good work! But you aren’t done yet: there are still a lot of questions you need to answer. How many tests do you write? When and where do you run them? How do you ensure there is test data available? What do you do about parts of your app that use mobile APIs that are difficult to automate? You could sink a lot of effort into these things—is the payoff worth it?
In this three-hour workshop we’ll address these questions by discussing how to integrate Detox into your development workflow. You’ll walk away with the skills and information you need to make Detox testing a natural and productive part of day-to-day development.
Table of contents:
- Deciding what to test with Detox vs React Native Testing Library vs manual testing- Setting up a fake API layer for testing- Getting Detox running on CI on GitHub Actions for free- Deciding how much of your app to test with Detox: a sliding scale- Fitting Detox into you local development workflow
Prerequisites
- Familiarity with building applications with React Native- Basic experience with Detox- Machine setup: a working React Native CLI development environment including either Xcode or Android Studio