Skip to content

An example of how to build a React Native app with Codemagic CI/CD. Please see the codemagic.yaml file for a sample workflow configuration.

Notifications You must be signed in to change notification settings

micah5/react-native-demo-project

 
 

Repository files navigation

React Native Demo Project (YAML build configuration)

React Native starter template

The codemagic.yaml in this React Native project can be used as a starter template for building your apps with Codemagic CI/CD.

This example contains two workflows.

  • The first is for building and publishing an Android App to Google Play.
  • The second workflow shows how to build and publish an IOS app to the App Store using Codemagic's open source CLI tools for automatic code signing.

There are links to the Codemagic documentation for additional information about code signing and publishing.

Documentation for YAML builds can be found at the following URL:

https://docs.codemagic.io/getting-started/yaml/

Encrypted Environment Variables

Use the Codemagic web app to securely encrypt environment variables that are included in the codemagic.yaml. These values can only be accessed on the Codemagic build servers.

Please note that encrypted values are specific to your personal account or team. If you move your app from personal account to a Team or vice versa you will need to re-encrypt these values.

How to Build your React Native app using the codemagic.yaml

  1. Add a copy of the codemagic.yaml to the root of the repository branch you want to build
  2. Update the values in codemagic.yaml file in the indicated places. Use the documentation links for help if required.
  3. Login to your Codemagic account at https://codemagic.io/login
  4. Add the repository for your React Native application in the Codemagic web app
  5. Click the 'Set up build' button on the respository
  6. In the Continuous Integration Workflows section choose the 'React Native App' workflow
  7. At the top of the screen select the branch you added the codemagic.yaml to and click the 'Check for configuration file' button
  8. Click on the 'Start your first build' button that is displayed when the configuration file is detected
  9. Select the workflow you would like to build and clikc the 'Start new build' button

To configure automatic build triggering on commit, tag, or pull request please refer to the following documentation:

https://docs.codemagic.io/getting-started/yaml/#triggering

Getting help and support

Click the URL below to join the Codemagic Slack Community:

https://slack.codemagic.io/

Customers who have enabled billing can use the in-app chat widget to get support.

About

An example of how to build a React Native app with Codemagic CI/CD. Please see the codemagic.yaml file for a sample workflow configuration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 38.9%
  • Objective-C 28.3%
  • JavaScript 23.8%
  • Ruby 5.2%
  • Starlark 3.8%