logo
1
0
WeChat Login

Build Android App from React Native and Publish to Release

badge badge badge

In this example, you will use cloud-native build to package your React Native project, build an Android app, and publish it as a release.

Prerequisites

  1. Use Cloud-Native Build (CNB) to build your project.
  2. Understanding of environment variables, Environment Variables.
  3. Declarative build cache.
  4. Plugins and their usage, Plugin Marketplace.
  5. Steps already configured for building the app, Packaging and Publishing.

Build Dependency Image

FROM mobiledevops/android-sdk-image:34.0.1 ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && \ apt-get install -y curl gnupg && \ curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ apt-get install -y nodejs RUN npm install --global yarn

The build process uses an image containing the Android SDK and Node.js environment. The dependency image used in this project is built using the above Dockerfile. You can build an image suitable for your version.

Getting Started from This Example

cnb-init-from https://cnb.cool/hakurei/rn-demo.git

About

使用cnb打包构建react-native项目

examplereact-nativecnb
Language
Shell21.9%
Gradle13.5%
TypeScript11.7%
Batch8.2%
Others44.7%