React Native reference
Android and iOS are available to eligible Cascade accounts for React Native and Expo projects. Commands, generated files, platform prerequisites and recovery. Choose a reference section.
Step-by-step React Native setup →8 reference sections
Install the executable named cascade and verify which CLI your PATH resolves.
Node 22+, Git and GitHub CLI are required locally. Use cascadeci-cli 0.1.3 or newer for the signing automation below. Project detection and linking do not require a local Android SDK/JDK or Xcode. Initial Apple signing preparation needs local fastlane; CI resolves the build toolchains separately.
node --version git --version gh --version
npm install -g cascadeci-cli cascade version cascade help
Use npx without a global install
Alternatively: npx cascadeci-cli init, after login. Prefix every CLI command; choose your platform lanes in the initialization step.
npx cascadeci-cli login npx cascadeci-cli init --lanes build_apk # Fill cascade.secrets.env for selected lanes first. npx cascadeci-cli match npx cascadeci-cli doctor
Expected outcome: cascade version reports the installed npm CLI version; help lists init, match and doctor.
Next: Authenticate with Cascade and GitHub.
Authorize Cascade and confirm GitHub repository access.
cascade login gh auth login gh auth status
Complete Cascade browser authorization on your own device. Without a browser on this machine use
cascade login --no-browserand open the displayed URL yourself. For an expired session, run login again; do not create another app. The npx route uses the same prefixed commands from Installation.Expected outcome: Cascade confirms login; gh auth status identifies your GitHub account.
Next: Open a supported Git repository root.
Check the session, app link, metadata, workflows and selected-lane inputs.
cascade doctor
Doctor verifies project and package-manager metadata, declared Node requirements, workflow integrity and selected GitHub inputs. Delivery lanes also check provider-status readiness; APK-only builds do not need it. For committed native projects, commit Podfile.lock before iOS CI. Fix named errors using Troubleshooting below; do not submit a store release just to clear status validation.
Expected outcome: Doctor reports selected platforms and ready configuration, or a stable error with recovery guidance.
Next: Commit reviewed operational files and push.
Separate committed configuration from local credentials.
- cascade.project.yaml — app binding and detected RN setup; commit.
- .github/workflows/cascade.yml — authenticated build bootstrap; commit.
- .github/workflows/cascade-refresh.yml — lifecycle companion; commit.
- cascade.secrets.env.example — empty template; commit.
- cascade.secrets.env — local only and gitignored (0600 on POSIX); never commit.
git check-ignore cascade.secrets.env git status --short
Only .gitignore is modified. Init creates only two workflows, cascade.project.yaml, cascade.secrets.env and cascade.secrets.env.example. It does not install dependencies or build. cascade.yml obtains the selected runtime steps from Cascade; it is not a standalone native build recipe. Existing RN and Flutter workflows need no regeneration.
Expected outcome: Five files exist and cascade.secrets.env is ignored; native/package files are unchanged.
Next: Supply only selected-lane credentials.
Fill the ignored local env file using its field comments, then configure selected inputs.
- Android APK: init and match import existing signing from local key.properties or standard android/gradle.properties and its in-project keystore when values agree. Otherwise provide ANDROID_KEYSTORE, KEYSTORE_PASSWORD, KEY_PASSWORD and KEYSTORE_ALIAS for your existing signing key. Play service-account credentials are required only for Play delivery/status lanes.
- iOS: supply the App Store Connect API key ID, issuer ID and private key. IOS_TEAM_ID is inferred from a unique native team or Expo ios.appleTeamId; supply it if ambiguous. Existing literal Matchfile repository settings are detected. Install fastlane locally, then run cascade match --ios once: missing private GitHub signing storage, password and Git authentication are prepared automatically, and Match provisions certificates/profiles for your bundle and team. Existing nonempty inputs are preserved. Keep the generated password in your own credential manager.
- Unselected platform fields may remain empty. Notification recipients are optional. Never paste signing or provider credentials into chat, support tickets or workflow YAML.
# Android-only setup: cascade match # If an iOS lane is selected, use this instead: cascade match --ios
ANDROID_KEYSTORE is base64-encoded .jks contents. The Apple .p8 input is the private-key contents, not an example placeholder. Follow the generated env comments; unselected platform fields may stay empty.
Match uploads relevant build/sign/upload inputs to GitHub Secrets. Delivery status credentials also use Cascade encrypted storage. Current iOS version/build lookup requires App Store Connect API credentials even for build_ios. match --ios provisions Apple signing using a private repository. Normal CI uses readonly signing, and ordinary match reuses saved signing inputs; do not repeat provisioning after a website deployment. Notification recipients are optional. Provider access validation is not a build.
Expected outcome: Match confirms selected GitHub credential groups; --ios prepares Apple signing storage, certificates and profiles.
Next: Review delivery controls before any push.
APK, AAB, signing and automatic version/versionCode. npm CLI 0.1.4+ detects the Android version during init and asks once during match for a starting value such as 1.0.1+12. Enter accepts the detected value; --android-version supports headless setup. The CLI writes the one-time seed to package.json. Existing database numbering takes precedence; later runs reserve new build numbers without Play version lookups. Keep androidVersionPolicy automatic for this mode. For the exact project Android version/build without store-version lookups, set
cascade.androidVersionPolicytoprojectin package.json. Keep versionCode higher than previously uploaded codes. Google Play internal, closed, open and production tracks use the shared rollout behavior. Select delivery lanes deliberately; a normal push executes the configured lanes.build_apk requires existing Android signing inputs; test_android and release_android also require Play service-account access. Leave unselected platform credentials empty.
Native device archive, Match signing, IPA export, automatic version/build, TestFlight upload and App Store review submission are implemented. iOS runs on macOS CI; local Xcode is unnecessary for setup. After verified upload, App Store review is queued on Cascade. GitHub Actions finishes without waiting for Apple processing. Cascade checks the exact build with bounded backoff and submits when valid; queued or failed submission is shown separately from upload success. App Store submission does not imply approval or automatic release.
Confirm the next push will execute only the actions you intend.
Open Dashboard → your App → App settings → delivery lane controls. Review Android and iOS separately. A normal RN push executes configured lanes; a tag cannot bypass disabled controls. Existing apps retain their enabled lanes unless you deliberately change them.
Use leading commit tags for a specific operation: [build-apk], [build-ios], [build-both], [test-android-internal], [test-android-closed], [test-android-open], [test-ios], [test-both], [release-android-partial], [release-android-full], [release-ios], [release-both-partial] or [release-both-full]. Enable the matching dashboard controls first. An untagged push uses the current App settings, for both Flutter and React Native; no new init or match is needed when changing these controls. All selected destinations run in sequence within each platform. Android and iOS run in parallel after shared preparation. Existing controls remain unchanged on ordinary re-init.
Expected outcome: Only your intended artifact, testing or release controls are enabled.
Next: Validate with doctor.
Bare React Native uses committed android/ and/or ios/ projects. Expo managed projects can generate these in CI. npm, Yarn and pnpm lockfiles are supported. Expo projects can keep native directories committed or use Continuous Native Generation: configure android.package and ios.bundleIdentifier, commit the JavaScript lockfile, and Cascade generates missing native directories with Expo Prebuild in CI. Config plugins run as part of Prebuild. No EAS credentials or subscription are required. Dynamic app configuration must resolve the same package identifiers locally and in CI. Keep build environment inputs consistent. Native projects must identify the intended application module and shared scheme; Cascade verifies the built binary before delivery.
- CLI_AUTH / expired browser authorization
- Run cascade login again, finish authorization before it expires, then retry the original command. For the npx route, use the prefixed login command from Installation. Do not recreate the app.
- GITHUB_REQUIRED / GITHUB_WRITE_REQUIRED
- Run gh auth status and gh repo view from this repository. Check the remote, default branch, organization authorization and write/secrets permissions. Cascade login does not sign you into GitHub.
- APP_ROOT_REQUIRED / PROJECT_AMBIGUOUS
- Use the Git app root with committed native projects. For Expo managed projects, configure android.package and ios.bundleIdentifier in app.json or app.config.js/ts, commit the JavaScript lockfile, and run init from the app repository root. CI generates native projects with the locked Expo CLI. Resolve ambiguous native targets explicitly rather than guessing.
- CREDENTIALS_MISSING / STATUS_NOT_READY
- For missing credentials, fill only the named selected-lane inputs, run match (with --ios for initial iOS preparation), then doctor. For saved connections, open App settings to check automatic validation; unchanged credentials do not need another match after a deployment. APK-only builds do not need provider-status setup. Delivery status validation can remain pending before a recorded upload; do not submit a store release merely to clear onboarding.
- GitHub: Invalid workflow / Unexpected symbol
- Run cascade init once to replace an older issued workflow with the corrected sealed version, then commit cascade.project.yaml and both generated workflow files. Existing signing secrets and store connections do not need another match. Do not manually edit expressions or checksums in sealed files.
- WORKFLOW_TAMPERED / WORKFLOW_INVALID
- Restore the exact issued workflows from your last known-good commit before retrying init or doctor. Do not hand-edit checksums or repeatedly regenerate an unchanged workflow.
- FEATURE_DISABLED / no run
- Check Android APK for testing, iOS IPA build and your selected controls in App settings. Flutter, React Native and Expo use the same account access and per-app release lane controls. Confirm Actions is enabled, workflows were committed, the default branch matches the binding and the push reached that branch.
- SECRETS_TRACKED / CONFIG_CHANGED
- For a tracked local env file, remove it from the Git index and rotate any exposed credentials before retrying. For a genuine native metadata or repository configuration change, review it and rerun init deliberately; keep existing secrets and bindings.
Confirm the actual first build result instead of inferring success from setup.
Open the repository Actions tab and the linked app in the Release Control Center. Build / Release Action links to the exact run; Status Refresh Action is separate. Inspect available artifacts and stage diagnostics. Retained APK links expire; do not assume every artifact is hosted by Cascade.
For failures report the job ID and safe error code, then inspect Actions logs. Never send credentials or full provider responses. Built, uploaded, processing and available are different outcomes.
Open the React Native reference →Expected outcome: The exact Actions run shows its build result; Cascade records the corresponding execution outcome.
Next: Keep build-only lanes until the real build is verified; use reference and troubleshooting for failures.
Using the Release Control Center
Open the dashboard to scan all Apps, with independent Android and iOS status. Total Apps, Live, In Review and Needs Attention cover the whole authorized workspace, including Apps on later pages. Use Previous and Next to browse 25 Apps at a time.
Open an App to see attention items, explicit lifecycle evidence, the recorded timeline and paginated release history. Build / Release Action and Status Refresh Action link to separate exact GitHub runs when recorded. App settings now contains delivery lane controls.
The latest reported status appears first. Visible current Android and iOS releases are checked independently: automatic refresh for the exact current release can start when the last successful check is at least 20 minutes old or missing; confirmed live releases are checked every 6 hours. Reloads inside that window reuse the latest status, and active requests are reused. Historical releases and manual-only Apps do not queue automatically. At most two requests run together. The page briefly checks the latest status while refresh is active, then stops. Use Refresh view if a workflow takes longer. Freshness is evidence age, not live streaming; Built or Uploaded alone does not establish store availability.
Status shows Checked just now or Checked 8m ago, Checking status… while queued, and Refreshing… while running. Failed refreshes preserve the successful-check time; failure backoff and provider/GitHub rate limits may delay another attempt. Explicit Refresh Status obeys the same 20-minute successful-check gate and retry limits. Run cascade match to configure store-status access ; no GitHub App authorization is needed for that setup. Existing Apps can retain their compatible workflow status path. For manual dispatch, expand the workflow instructions returned after a queued manual refresh and run the displayed command from that App’s repository.
Needs Attention uses recorded failure or review information. Detailed reviewer feedback is not exposed by the approved Google or Apple API reads. Open Google Play Console or App Store Connect for the exact review. Cascade does not invent rejection feedback. Workflow readiness issues may require rerunning cascade init and committing the generated workflows to the default branch.
When a current execution fails, the platform shows Build Failed, Signing Failed, Upload Failed or Submission Failed when the recorded operation supports that reason. Read the safe explanation and suggested action, then use Open GitHub Actions for the exact run and full logs. Failed attempts remain in release history after a successful retry. Processing Failed, Rejected and Status Refresh Failed describe separate store or refresh outcomes. Bootstrap, cancelled or interrupted executions may show only Execution failed.
Cascade reads store status using credentials configured by cascade match. Signing credentials stay in GitHub Secrets. When App Store review is selected, the verified upload is handed to Cascade’s saved Apple connection for background submission. Actions does not wait for processing; upload, queued submission and review outcome remain separate.
Artifacts show only the latest retained APK until expiry. Readiness describes configuration expected by enabled lanes and recorded successful builds; it does not verify credential validity.
Support matrix
- Flutter
- Android: Available. iOS: Available through the existing Dart CLI.
- React Native
- Android and iOS: Available for bare React Native and Expo Prebuild.
- Native Android/Kotlin and Native iOS/Swift
- Coming.
- Expo managed / Continuous Native Generation
- Android and iOS through Expo Prebuild on GitHub Actions; no EAS account needed.