DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
Cupertino desk6 min

React Native Dev, Staging, and Production Builds: Android Flavors and iOS Schemes

A practical guide to mapping dev, staging, and production settings to Android build variants and iOS schemes—and avoiding Metro, identity, and release mistakes.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To keep development, staging, and production builds separate in a React Native CLI app, define what changes in each environment, then select the matching native build. Android combines product flavors with build types to create variants; iOS schemes select build actions and configurations. Make sure each selection maps to real app settings—such as its backend and bundle or application identifier—and that React Native packages JavaScript for builds expected to run without Metro.

How should you define dev, staging, and production?

Start with a short environment matrix rather than adding native build options one by one. The entries below are a planning model, not prescribed values: choose the actual endpoints, identifiers, services, and distribution lanes for your app.

As an Amazon Associate I earn from qualifying purchases.

Environment Backend and app identity JavaScript and distribution
Development Development backend; use a distinct app name and identifier if it must coexist with production. Often run with Metro during local development. Use a development signing and install workflow.
Staging Staging backend; use a distinct name and identifier if testers need it installed alongside production. Decide whether testers use Metro or a self-contained bundle. Select the corresponding signing and tester distribution lane.
Production Production backend and production app identity. Use a release build with the appropriate signing and store distribution workflow.

For each row, record the backend or base URL, display name, application or bundle identifier, feature flags, analytics destination, push-notification configuration, deep-link domains, signing and distribution destination, and whether Metro is expected. A scheme or flavor name does not change an endpoint by itself: the selected configuration must feed values into the native app and the JavaScript code that uses them. Do not put secrets in client-side configuration; values compiled into an app can be inspected, so enforce access to sensitive resources on the server.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Decide whether you need environments, build types, or both

Android build types describe build behavior, commonly debug and release. Product flavors describe app variations, such as development, staging, or production. Gradle combines the two into build variants. If your only distinction is debug versus release behavior, build types may be enough. If environments need different identities, resources, or configuration, flavors provide a natural axis for those differences. Avoid adding flavor dimensions for every preference: each dimension increases the combinations the team may need to build and validate.

#1 Best Overall
Sale
Samsung Galaxy A17 5G Smart Phone 128GB US 1 Yr Manufacturer Warranty Black
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.

On iOS, use a consistent environment naming scheme for schemes and the configurations they select. Keep that mapping aligned with Android and CI, but verify how it is implemented in the particular project template and Xcode version; a scheme label alone is not environment configuration.

How do Android product flavors work with React Native?

In a new React Native Android project, the usual build types are debug and release; custom product flavors are not created for you. Add flavors only for the app variations you need. Android’s build variants guide explains how flavors belong to dimensions, can override shared settings, and can use variant-specific source sets for code and resources.

Rank #2
Tracfone Motorola Moto G 2025, 64GB, Saphire Blue (Locked to
  • Carrier: This phone is locked to Tracfone, which means this device can only be used on the Tracfone wireless network. Tracfone plan required, activating is easy, just 3 steps.
  • DISPLAY: Immersive viewing on a 6.7-inch super-bright 120Hz display with powerful stereo speakers and Bass Boost for cinematic entertainment.
  • CAMERA SYSTEM: Advanced 50MP Quad Pixel camera captures sharp, detailed photos and videos in any lighting condition
  • PERFORMANCE: Lightning-fast 5G connectivity paired with a powerful processor and RAM Boost for smooth multitasking.
  • BATTERY LIFE: Long-lasting 5000mAh battery with TurboPower charging technology delivers hours of power in minutes.

Read and select the generated variant name

With one flavor dimension, Gradle combines the flavor name and build type. For example, a staging flavor and release build type produce stagingRelease. The React Native Gradle Plugin documentation illustrates the multiplication: two flavors crossed with three build types produce six variants, including fullDebug, fullStaging, and fullRelease, plus the corresponding lite variants. That six-variant set is an example, not a required project layout. See the React Native Gradle Plugin guide for its variant and bundling behavior.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use Android Studio’s Build Variants view or the project’s Gradle tasks to confirm the exact names your project generates. Then select that exact variant locally and in CI. For example, if the project really has a stagingRelease variant, its app module can commonly be built with ./gradlew :app:assembleStagingRelease; use the project’s Gradle wrapper and verify the task exists rather than assuming every project has the same module name or variants.

Rank #3
Sale
Samsung Galaxy A17 5G Smart Phone 128GB, US 1 Yr Manufacturer Warranty Blue
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.

Keep React Native’s Metro and bundle behavior intentional

React Native’s Gradle Plugin defaults debuggableVariants to only debug. A variant listed there does not receive a shipped JavaScript bundle and needs Metro to run. This is useful for a custom development variant intended for local work, but it is a trap for a staging build meant to install and run independently.

Check the generated variant spelling and case against the project’s debuggableVariants setting. A stagingDebug variant may intentionally use Metro; a stagingRelease distributed to testers should generally have its JavaScript bundled rather than be treated as debuggable. Before distributing a supposedly standalone staging build, install it with Metro stopped. The React Native documentation states: “Variants that are listed as debuggableVariants will not come with a shipped bundle, so you’ll need Metro to run them.”

Rank #4
Sale
Samsung Galaxy S26 Ultra, Unlocked Android Smartphone, 512GB, Black
  • PRIVACY DISPLAY: Automatically hide your screen from those beside you. The built-in privacy display can be preset¹ to turn on when receiving notifications, typing passwords, or using specific apps
  • TYPE IT IN. TRANSFORM IT FAST: Enhance any shot in seconds on your smartphone by using Photo Assist² with Galaxy AI.³ Add objects, restore details, or apply new styles by simply typing or tapping
  • NIGHTS, CAPTURED CLEARLY: From gigs to city lights, record and capture moments after dark with clarity using Nightography so your photos and videos stay crisp and clear on your Samsung Galaxy
  • MAKE IT. EDIT IT. SHARE IT: Turn everyday moments into something personal with creative tools built right into your mobile phone, whether it’s a special contact photo, custom wallpaper, an invitation or more⁴
  • HELP THAT KEEPS UP: Stay in the moment while Now Nudge with Galaxy AI helps you respond faster and stay organized with smart suggestions⁵ that appear exactly when you need them on your phone

Separate install identity and environment resources

A flavor can use applicationIdSuffix and versionNameSuffix, and Android’s build configuration can override applicationId. That makes it possible to install a nonproduction build alongside production when the resulting identifiers differ. Decide explicitly which variants should coexist, and ensure the visible name, icon, backend, links, push setup, and analytics destination agree with the selected environment. An identifier suffix alone does not configure those other values.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How do iOS schemes select an environment?

An Xcode scheme determines which build action and configuration Xcode uses. For environment-specific apps, teams commonly maintain schemes mapped to configurations and settings for each environment, including bundle identifiers when separate installs are wanted. Those settings must actually be consumed by the app; renaming or selecting a scheme does not automatically switch a JavaScript API URL.

Best Value
Tracfone Moto g Play 2024 Prepaid Phone with a 1-Yr Plan Included
  • Carrier: This phone is locked to Tracfone, which means this device can only be used on the Tracfone wireless network. Activating is easy, just 3 steps.
  • ACTIVATION Promotion: Includes 1500 min, 1500 texts & 1500 MB Data + add more as you need it
  • CAMERA SYSTEM: 50MP Quad Pixel camera. Capture sharper, more vibrant photos day or night with 4x the light sensitivity.
  • PERFORMANCE: Blazing-fast Qualcomm performance. Get the speed you need for great entertainment with a Snapdragon 680 processor and 4GB of RAM.
  • 64GB built-in storage. Get plenty of room for photos, movies, songs, and apps. Made for US

The exact steps for creating and mapping three schemes are project-template- and Xcode-version-specific. The React Native source cited here establishes how to select Release for distribution, but is not a universal recipe for duplicating configurations, creating schemes, wiring .xcconfig files, or updating CocoaPods mappings. Follow the conventions in the project being built and verify the selected configuration’s values in both native and JavaScript code.

Use Release for distribution

React Native’s App Store publishing guide says that “Building an app for distribution in the App Store requires using the Release scheme in Xcode.” Its Release configuration disables the in-app Dev Menu and bundles JavaScript locally, so a device build can run without the development computer. In Xcode, the guide directs developers to Product → Scheme → Edit Scheme to select Release; it also documents choosing Release with the React Native CLI’s --mode Release option.

For the archive and store workflow, check that the bundle identifier matches the intended Apple Developer account identifier, select an Any iOS Device (arm64) destination, choose signing deliberately, and archive for upload or distribution through App Store Connect. A successful archive does not prove that the app points to the production backend or uses the intended services; validate those settings in the app itself.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What is a repeatable build and release workflow?

  1. Write the matrix. Record what differs across environments and which builds should coexist on a device.
  2. Keep shared defaults shared. Put common resources and settings in common configuration, and isolate only intentional environment differences.
  3. Name selections explicitly. Document the exact Android variant and iOS scheme/configuration developers and CI must select.
  4. Check Android bundling. Confirm only Metro-dependent variants are listed as debuggable; test a staging artifact with Metro stopped if it should run standalone.
  5. Validate the candidate. Check its backend, visible identity, push and deep-link settings, analytics destination, signing, and distribution lane before upload.
  6. Inspect the production artifact. Verify its build metadata and configuration rather than treating a successful compile as proof that production was selected.

Native iOS builds require macOS hardware locally, according to React Native’s 0.81 environment setup guide. That requirement applies to building projects with native iOS code, not to Android-only builds; check the setup guidance for the React Native version used by your project because the cited page is version-specific. Teams using Expo may also consider its optional managed build workflow, but it is complementary context rather than a replacement for the native flavor and scheme decisions described here.

Quick Recap

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.