React Native
Who this is for
Section titled “Who this is for”Engineers on a React Native project.
When to use it
Section titled “When to use it”When you write or review mobile app code.
- Must: Follow Engineering for Git, review, tests-in-general, and Delivery. This page adds only React Native rules.
- Must: Navigation follows the library already in the repo (one navigator tree). Do not add a second navigation system without a decision record.
- Must: Secrets and API keys are not hardcoded in the JS bundle. Use the project’s env/build-time secrets path.
- Must: Store/TestFlight/Play releases follow the project’s checklist: version bump, changelog, signing, and who clicks submit. Ship still follows Ship.
- Should: Keep screens thin: navigation + wiring. Put reusable UI and side effects where the repo already puts them.
- Should: Test navigation and the riskiest device flows (auth, payments, offline) on a real device or CI emulator, not only a unit test of a reducer.
- Should: Respect platform differences (back button, permissions, safe area) instead of assuming iOS-only.
- Team decides: Expo vs bare React Native, and whether OTA updates are allowed. Flutter and native iOS/Android are out of this playbook.
What good looks like
Section titled “What good looks like”A reviewer can find the screen, the navigator, and how this build will get to a store — without a pairing session.
What to do
Section titled “What to do”- Check Git and review on the shared pages first.
- Put the screen in the existing navigator. Do not fork navigation.
- Keep keys out of source. Use the agreed secrets path.
- Add or update a device/emulator test for the user-visible flow you changed.
- For a store build, run the release checklist and then Ship.