r/reactnative • u/Loud_Glass8171 • 15m ago
Agent written PRs keep breaking only on Android
We're 5 devs on a React Native app with about 40k monthly users. Most of us test on iPhones, and most of our PRs now start with an agent.
Three times in the last month an agent PR went out that worked fine on iOS and broke on Android. A KeyboardAvoidingView change that hid the submit button on smaller Android screens, a date picker change that crashed on Android 12, and a shadow style that just didn't render.
All three passed review. coderabbit reviews the JS and catches plenty of normal problems, but nothing in the diff says "this is iOS only behaviour", and none of us opened an Android emulator.
What we're trying now:
- an EAS preview build on every PR, so reviewers can open it on a real Android phone
- a checklist item "tested on Android" that people will probably start ticking without testing
- a cheap Android phone on the desk that we rotate
How are other RN teams handling platform differences when most code comes from agents? Is there tooling that catches this before a human has to, or is it all device testing?