Autosana Logo
    Autosana
    • SandboxesBeta
    • Enterprise
    • Pricing
    Contact salesTry for free
    Resources

    Blog

    Insights on automated testing and QA best practices.

    BlogProduct updatesCase studies
    AllComparisonsBest ToolsMobile TestingAI TestingTesting Fundamentals

    Fix bugs, not tests.

    Talk to an expert.

    Book 30 minutes with our team. We'll show you Autosana running on your app.

    Contact sales

    Start building.

    Describe a user journey and watch an agent run it on iOS, Android, and web.

    Try for free
    Autosana

    Catch bugs before your users do.

    Try for free

    Product

    • Platform
    • Use cases
    • Enterprise
    • Pricing

    Resources

    • Docs
    • Case Studies
    • Product Updates
    • Blog

    Company

    • Contact sales
    • Careers
    • LinkedIn

    Trust

    • Status
    • Security
    • SOC 2 Type 1 · Type 2 in review
    • Backed by

    © 2026 Autosana. All rights reserved.

    Autosana Logo
    Autosana
    • SandboxesBeta
    • Enterprise
    • Pricing
    Contact salesTry for free
    Written by
    Read time
    Published
    Autosana

    Catch bugs before your users do.

    Try for free

    Product

    • Platform
    • Use cases
    • Enterprise
    • Pricing

    Resources

    • Docs
    • Case Studies
    • Product Updates
    • Blog

    Company

    • Contact sales
    • Careers
    • LinkedIn

    Trust

    • Status
    • Security
    • SOC 2 Type 1 · Type 2 in review
    • Backed by

    © 2026 Autosana. All rights reserved.

    Autosana Logo
    Autosana
    • SandboxesBeta
    • Enterprise
    • Pricing
    Contact salesTry for free
    Back to Blog
    Blog

    React Native upgrade testing for dependency PRs before merge

    React Native upgrade testing for Dependabot and Renovate PRs: which bumps break on device, which user journeys to run per upgrade type, and a merge policy by risk.

    Written by
    Yuvan Sundrani
    Read time
    8 min read
    Published
    December 1, 2026
    React Native upgrade testing for dependency PRs before merge

    Key Takeaways

    • React Native upgrades change files under ios/ and android/, so a green Jest run proves the JavaScript and nothing about the native build.
    • React Navigation 7 changed what navigate does with nested navigators; the code compiles and the user lands on a different screen.
    • Dependabot has no CocoaPods ecosystem, so a Podfile-based iOS project needs Renovate or manual bumps for pods.
    • Google Play now requires new apps and updates to target API 36, so a targetSdk bump is a scheduled, unavoidable behavior change.
    • Sorting bump PRs into three risk tiers lets JS-only updates merge on unit tests while native bumps wait for journeys on a real build.

    A dependency PR is safe to merge when its build has run the user journeys that dependency touches. Unit tests cover the JavaScript; launch, navigation, permission prompts and native module calls only show up on a device.

    Why do React Native upgrades break on device?

    Native project files. The React Native upgrading guide describes a project as an Android project, an iOS project and a JavaScript project, and points to the Upgrade Helper for the native file changes between versions.

    The 0.76 release, for example, required a SoLoader change in MainApplication. A PR that bumps react-native in package.json without those edits builds JavaScript fine and fails at native link or launch.

    The New Architecture. React Native's 0.76 announcement made the New Architecture the default, with an interoperability layer for libraries targeting the old one.

    The same post lists the layer's limits (no custom Shadow Nodes, no concurrent features) and says a future release will remove it. A library that relies on the layer works until the version that drops it, and fails at runtime when a module can't be found.

    Behavior changes that type-check. React Navigation's 6 to 7 guide states that navigation.navigate(ScreenName) no longer navigates into a nested child navigator by default. Nothing fails to compile; the tap lands somewhere else. The same guide notes that @react-navigation/native-stack now requires react-native-screens 4, so one bump forces another.

    Platform targets. Google Play's target API page states that from August 31, 2026, new apps and app updates must target Android 16 (API level 36). Each targetSdk bump turns on that level's behavior changes for the app, whether or not any code changed.

    Expo SDK bumps. Expo's walkthrough recommends upgrading one SDK version at a time, running npx expo install --fix and npx expo-doctor, and regenerating android and ios directories when using Continuous Native Generation. A bump PR that only edits package.json skips all three.

    React Native upgrade testing by dependency type

    UpgradeWhat breaks on deviceJourneys to run on the PR build
     
    react-native minor or majorNative link, launch, modules missing under the New ArchitectureCold launch, sign-in, one screen per native module
    Expo SDKNative config, plugin output, module versionsSame as above, on a new development build
    Navigation libraryRoute resolution, back behavior, deep linksEvery deep link, nested stack navigation, back from each tab
    Native SDK (payments, auth, maps, analytics)Initialization order, permission prompts, callbacksThe flow that SDK owns, end to end
    Camera, location, notification librariesPrompt timing and text, denied-path handlingFirst launch with the prompt, deny path
    targetSdk or iOS SDKPlatform behavior changes (insets, permissions, background work)Full smoke suite on the newest OS image
    JS-only utilityLogic, already covered by unit testsNone beyond unit tests

    The last row usually carries the bulk of bump PRs; keeping it cheap frees device time for the rows above it.

    Upgrade type against what breaks on device: react-native and Expo SDK bumps hit launch, native modules and build configuration; navigation libraries hit routing and deep links; native SDKs hit initialization and callbacks; permission libraries hit prompts; target SDK bumps hit platform behavior; JS-only utilities hit only logic covered by unit tests
    Merge dependency PRs on evidence. Try Autosana for free.

    Dependency bot configuration for React Native

    GitHub's Dependabot ecosystem list covers npm, gradle and swift, with no CocoaPods entry. Renovate's CocoaPods manager updates Podfile and Podfile.lock, so mixed projects often run Renovate for pods.

    Group by risk tier so each PR maps to one row of the table:

    # .github/dependabot.yml
    version: 2
    updates:
      - package-ecosystem: npm
        directory: /
        schedule: { interval: weekly }
        groups:
          react-native-core:
            patterns: ["react-native", "react-native-*", "@react-native/*"]
          navigation:
            patterns: ["@react-navigation/*", "react-native-screens"]

    {
      "packageRules": [
        { "matchPackageNames": ["/^@react-navigation/", "react-native-screens"], "groupName": "navigation" },
        { "matchDepTypes": ["devDependencies"], "minimumReleaseAge": "14 days", "automerge": true }
      ]
    }

    Dependabot opens at most five version-update PRs by default (open-pull-requests-limit). Renovate's docs note that grouping raises the chance a branch breaks the build, which is the trade for fewer PRs; a group that fails tells you less about which package caused it. minimumReleaseAge holds an update until the release has aged, which Renovate describes as a supply-chain risk control.

    A merge policy for dependency PRs in three tiers: JS-only dev dependencies merge on unit tests after a release-age wait, JS runtime dependencies merge after E2E journeys pass on the PR build, and native, SDK and platform-target bumps merge after a release build runs the full upgrade journey set and an agent check

    Autosana for dependency PR testing

    Autosana is an AI end-to-end testing agent for iOS, Android and web apps. For bump PRs, we run the user journeys a dependency touches on that PR's own build and post the result to the PR, so a native bump merges on evidence from a device.

    Autosana key features for upgrade PRs

    1. Tests picked from the diff. Our GitHub app analyzes each PR's diff, selects the relevant tests (editing or creating them as needed), runs them in parallel as the build completes, and posts results with videos plus a GitHub Check. A PR that only changes package.json and the lockfile still gets device runs.
    2. A required check per risk tier. Our GitHub Action uploads the build and runs every test carrying a label, waits for them, and fails the job when one fails. Tier 3 bumps can run on real hardware, as in the workflow step below.
    3. Agent walkthroughs for native bumps. When a coding agent prepares a native bump, it installs its build with autosana sandbox upload and walks the affected journey before marking the PR ready. Tagging @autosana in a PR comment asks for a specific test or a re-run.

    - uses: autosana/autosana-ci@main
      with:
        api-key: ${{ secrets.AUTOSANA_KEY }}
        platform: android
        bundle-id: com.example.app
        build-path: android/app/build/outputs/apk/release/app-release.apk
        labels: upgrade-native
        physical-device: true

    A GitHub pull request showing the Autosana build upload check and Autosana PR Tests with all 4 tests passed
     pull request with two checks: the build upload and our PR Tests, here with all 4 tests passed before merge. Source: Autosana GitHub Bot docs video.

    A pull request with two checks: the build upload and our PR Tests, here with all 4 tests passed before merge. Source: Autosana GitHub Bot docs video.

    Autosana customer results

    • Lucra (white-label social competition platform) automated about 70% of a 250-step regression suite in under 15 hours of effort. See the Lucra case study.
    • Gobi (social maps app) replaced 13 brittle Maestro tests with 30+ Autosana tests.

    Which tests a diff should trigger is covered in diff-based test selection for mobile pull requests.

    The case for E2E on every PR is made in shift-left testing for mobile.

    Where Autosana fits less well

    • We don't run Jest or existing Espresso and XCTest bundles; unit and component tests stay in your CI.
    • A debug-only upload skips R8 and Hermes precompilation, so tier 3 needs the release build uploaded.
    • Push notifications on private physical devices need an enterprise contract.

    Why use Autosana for dependency PR testing?

    • Bump PRs stop waiting on a person. Device runs and videos land on the PR automatically.
    • Risk tiers map to labels. Each tier's journeys run as a required check.
    • Native breakage shows up before merge. Launch, navigation and permission journeys run on the PR's build.
    • Release builds get tested. The Action uploads whatever your CI built, R8 and Hermes included.
    • Real hardware for the riskiest bumps. physical-device: true moves tier 3 onto real phones.
    • Free allowance to start. Pay as you go includes up to 1,000 AI actions a month.
    Upgrade PRs, tested on devices. Try Autosana for free.

    Conclusion

    A merge policy by tier keeps the queue moving:

    • Tier 1, JS-only dev dependencies: unit tests and a release-age wait, then automerge.
    • Tier 2, JS runtime dependencies: E2E journeys for the affected area on the PR build.
    • Tier 3, native, SDK and platform targets: release build, full upgrade label set, and an agent or human walkthrough of the journey the dependency owns.

    The cost moves to tier 3, where it belongs, and tier 1 stops waiting on people. For framework-specific setup, see React Native E2E testing.

    Expo projects have their own build path, covered in Expo E2E testing.

    FAQs

    1. Why do React Native upgrades break when unit tests pass?

    Upgrades change native iOS and Android files that Jest never builds or runs.

    2. Is the New Architecture on by default?

    Yes, since React Native 0.76, with an interop layer for older libraries.

    3. Does Dependabot update CocoaPods?

    No CocoaPods ecosystem appears in its supported list; Renovate has a CocoaPods manager.

    4. What target API does Google Play require?

    New apps and updates must target API 36 since August 31, 2026.

    5. Should dependency PRs be grouped?

    Group by risk tier. Larger groups make a failure harder to attribute.

    6. Can Autosana test a PR that only changes package.json?

    Yes. The GitHub bot selects flows from the diff and runs them on the PR's build.

    Sources

    • React Native: The New Architecture is here
    • GitHub Docs: Dependabot supported ecosystems

    ‍

    Fix bugs, not tests.

    Talk to an expert.

    Book 30 minutes with our team. We'll show you Autosana running on your app.

    Contact sales

    Start building.

    Describe a user journey and watch an agent run it on iOS, Android, and web.

    Try for free
    Autosana

    Catch bugs before your users do.

    Try for free

    Product

    • Platform
    • Use cases
    • Enterprise
    • Pricing

    Resources

    • Docs
    • Case Studies
    • Product Updates
    • Blog

    Company

    • Contact sales
    • Careers
    • LinkedIn

    Trust

    • Status
    • Security
    • SOC 2 Type 1 · Type 2 in review
    • Backed by

    © 2026 Autosana. All rights reserved.