# Agent PRs that break only on Android (React Native and Expo)

> Source: <https://dev.to/mobilebox/agent-prs-that-break-only-on-android-react-native-and-expo-2j2c>
> Published: 2026-11-21 11:00:14+00:00

**Recommendation:** Give coding agents an Android check they skip: build the PR's release APK and have the agent open the changed screen, exercise the flow and post before/after screenshots before merge.
More in the playbook "Working with AI coding agents": <https://wpnews.pro/playbooks/coding-agents>

*Disclosure: we build Mobilebox, one of the services in this post. Written with AI assistance from our own published data; every number carries its date and source, and corrections go to [hello@mobilebox.dev](mailto:hello@mobilebox.dev).*

To catch the React Native or Expo pull requests that break only on Android, build the PR's Android APK in CI and open it on a cloud Android phone before anyone merges. A check that reads the JavaScript can't see these bugs, and an iOS simulator run never renders them. On Mobilebox a phone costs $0.01 a minute, billed per second, so a check that installs the build, walks the changed screen and posts screenshots on the PR costs a few cents (prices as of November 17, 2026).

Coding agents usually test where they run: TypeScript, unit tests, maybe an iOS simulator on a Mac. Android-only failures come from code that no step in that loop executes:

`Button.android.tsx` over `Button.tsx` on Android, and `Platform.OS === 'android'` branches run only there (`.android` one ships a stale screen.`KeyboardAvoidingView` behaves differently per platform, and the right `behavior` value differs (`BackHandler` (`assembleRelease` while the JavaScript type-checks clean.
None of these is exotic. They're just on the platform nobody opened.

**Expo (EAS).** An installable APK needs a build profile with `"android": { "buildType": "apk" }` in `eas.json`; the default store build is an AAB ([Build APKs for Android emulators and devices](https://docs.expo.dev/build-reference/apk/)). Then `eas build --platform android --profile preview` on the PR.

**Bare React Native.** In `android/`, run `./gradlew assembleRelease`. A debug build loads its JavaScript from the Metro dev server, so it won't start on its own on a remote phone. The release build bundles the JavaScript, and the default template signs it with the debug key.

Mobilebox phones are Android 14 on arm64, so the APK needs the `arm64-v8a` ABI, which React Native builds by default. Split bundles install too ([install guide](https://mobilebox.dev/blog/install-apk-split-bundles?via=devto)).

Two ways, depending on how much of the flow you want checked:

**Every push: the GitHub Action.** [mobilebox-dev/android-smoke-action](https://github.com/mobilebox-dev/android-smoke-action) installs the APK on a fresh phone, opens it, waits for a text you name and deletes the phone. On a pull request it posts one comment with a screenshot, the time and the cost, and updates it on each push. After checkout and `npm ci`, the two steps for an Expo app:

```
      - run: npx eas-cli build --platform android --profile preview --local --output app.apk --non-interactive
        env:
          EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
      - uses: mobilebox-dev/android-smoke-action@v1
        with:
          apk: app.apk
          wait-for: Welcome
          api-key: ${{ secrets.MOBILESANDBOX_API_KEY }}
```

**The changed flow: your coding agent over MCP.** Add `https://mobilebox.dev/mcp` to Claude Code, Cursor or Codex and sign in ([setup per tool](https://mobilebox.dev/blog/android-mcp-cursor-codex-vscode?via=devto)). Then give the agent that wrote the PR the check it skipped:

```
Install the APK from this PR on a Mobilebox phone. Open the checkout
screen, focus the card number field and confirm the Pay button is still
visible with the keyboard open. Press back and confirm the cart comes
back. Call publish_proof with before and after screenshots, post the
Markdown on the PR, then delete the phone.
```

The agent reads the screen as numbered elements, taps and types, and handles the permission dialog like any other screen ([agent guide](https://mobilebox.dev/docs/agents?via=devto)). The proof comment shows the device, the time and the cost, all taken from the phone's own session. What the comment looks like and what is kept: [Screenshots in every pull request](https://mobilebox.dev/blog/screenshots-in-every-pull-request?via=devto).

A Mobilebox phone is an Android 14 cloud phone without Google Play. Bugs that need a specific vendor's hardware, Play Integrity or Play services need a real device ([when that matters](https://mobilebox.dev/blog/real-android-devices-vs-cloud-phones?via=devto)). For layout, keyboard, back, permissions and "does the build even start", a phone per PR is enough, and it runs before a human has to.

*Originally published at [mobilebox.dev/blog/react-native-android-agent-prs](https://mobilebox.dev/blog/react-native-android-agent-prs?via=devto).*
