Can we make CI setup simpler in React Native?
Maciej Stosio•Oct 7, 2024•3 min readImagine slashing CI setup time for your Expo/React Native project from hours to just 5 minutes!
Every one of us has at least once created a React Native project and didn’t spend time configuring CI, which bit us later in the process. I assume most of us have worked on projects that didn’t have proper CI, and when adding it later, needed to spend time refactoring to make all checkmarks green again ✅.
TLDR; run npx setup-ci if you want to generate GitHub workflows for the most common use cases in your Expo/React Native project

Setting up CI is this annoying thing that you know is good to have, but simultaneously, it requires research and trial & error each time. It takes us a bunch of time that we’d rather spend on implementing another cool feature. The best would be to have it from the start, but at the beginning, who cares? There are more important features when working on a cool new MVP.
What if I tell you that you can quickly scaffold CI for a React Native project in 5 minutes instead of hours of tedious work?

This is where npx setup-ci comes in. At Software Mansion, we created a CLI tool that allows developers to generate the most popular GitHub workflows for your project. So you can start fast and customize it later to fit your needs better.
The idea is that when you want to set up CI in your current project or you’re starting something new, just run the npx setup-ci command. The wizard will guide you through selecting the workflows you want to generate.

Currently, we support:
- code quality tests with ESLint & Prettier
- type check with TypeScript
- unit tests using Jest
- E2E tests with Detox and Maestro
- app preview with EAS Update & EAS Build
All of this works with npm and yarn, and we generate workflows for GitHub Actions.
Supported setup and tools are opinionated; we tried to cover the most important areas with the most popular tools, but if something is missing, we’re waiting for your feedback! After all, this tool is supposed to help us all create better apps quicker.
This project has been built and is maintained thanks to the support from Software Mansion. We’re software agency with experience in building web and mobile apps. We are Core React Native Contributors and experts in dealing with all kinds of React Native issues. We can help you build your next dream product — Hire us.
Contact | Software Mansion Software Mansion S.A., a polish public joint stock company with its principal place of business at ul. Zabłocie 43b…swmansion.com
