Skip to content
Skills Library
Programming · Building & coding

expo-react-native-app-engineering

/expo-react-native-app-engineering

Engineering skill: Expo React Native app — how to build and ship a cross-platform app with React Native with Expo and Expo Router, TypeScript, StyleSheet reading a typed token theme, Jest with jest-expo. Use when writing, reviewing, testing or releasing code in this stack, and when turning a Celestial design or experience skill into code.

Licence
Apache-2.0
Last repository change
02.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
4
Scripts
0
HTML comments
0
URLs in SKILL.md
3
Deprecation

No signals detected. Repository changed on 02.11.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Engineering skill: Expo React Native app — how to build and ship a cross-platform app with React Native with Expo and Expo Router, TypeScript, StyleSheet reading a typed token theme, Jest with jest-expo. Use when writing, reviewing, testing or releasing code in this stack, and when turning a Celestial design or experience skill into code.

Original author description

Engineering skill: Expo React Native app — how to build and ship a cross-platform app with React Native with Expo and Expo Router, TypeScript, StyleSheet reading a typed token theme, Jest with jest-expo. Use when writing, reviewing, testing or releasing code in this stack, and when turning a Celestial design or experience skill into code.

How it works

  1. Stack
  2. Commands
  3. Structure
  4. Naming
  5. From design and experience skills
  6. Conventions
  7. Do
  8. Don't
  9. Quality gates
  10. Workflow
Original SKILL.md headings · 171 lines, 2,103 words
SKILL.md preview
---
name: expo-react-native-app-engineering
description: "Engineering skill: Expo React Native app — how to build and ship a cross-platform app with React Native with Expo and Expo Router, TypeScript, StyleSheet reading a typed token theme, Jest with jest-expo. Use when writing, reviewing, testing or releasing code in this stack, and when turning a Celestial design or experience skill into code."
type: engineering
stack: cross-platform
core: "1.0"
checked: 2026-10-26
---

# Expo React Native app

One TypeScript codebase for iOS and Android on React Native and Expo, with file-based navigation, cloud builds and over-the-air fixes for JavaScript changes.

For consumer and field apps that must ship on both phones from one team: booking, ordering, logging, companion apps. Expo Router handles navigation, EAS builds signed binaries in the cloud, and EAS Update ships JavaScript-only fixes between store releases. Design-skill tokens become a typed theme object generated by Style Dictionary.

## Stack
- **Language:** TypeScript ^5.6 — Typed props, routes and API responses across both platforms.
- **Framework:** React Native with Expo and Expo Router Expo SDK 58+ · React Native 0.88+ — Native modules, file-based navigation and the build pipeline without maintaining native projects by hand.
- **Styling:** StyleSheet reading a typed token theme — No runtime styling engine; light and dark themes come from the same token file.
- **State:** TanStack Query + local component state ^5 — Server state cached with retry and offline awareness; no global store until two features share state.
- **Data:** Typed fetch client; expo-secure-store for credentials; SQLite for offline data when needed — Tokens sit in the device keychain or keystore, not in plain storage.
- **Build:** EAS Build eas-cli ^16 — Reproducible signed iOS and Android builds in CI, with credentials managed outside the repo.
- **Hosting:** App Store and Google Play via EAS Submit; EAS Update channels for JavaScript fixes — Store releases for native changes, update channels for safe JavaScript-only patches.
- **Package manager:** pnpm (node-linker=hoisted) ^10 — Fast installs; hoisted layout keeps native module resolution predictable.
- **Testing:** Jest with jest-expo ^29 — Unit and component tests with Expo module mocks.
- **Testing:** React Native Testing Library ^13 — Queries by role and accessibility label, like screen readers do.
- **Testing:** Maestro ^1.40 — Journey flows on real simulators and emulators, written as readable YAML.

## Commands
- dev: `pnpm expo start`
- e2e: `maestro test .maestro/`
- lint: `pnpm expo lint && pnpm typecheck`
- test: `pnpm test`
- build: `eas build --profile production --platform all`
- deploy: `eas submit --profile production --platform all`
- install: `pnpm install`

## Structure
- `app/` — Expo Router routes: _layout.tsx, (tabs)/, [id].tsx; screens stay thin
- `src/components/` — Design-skill components, one folder each with component and test
- `src/features/<feature>/` — Hooks, API calls and screen logic for one journey
- `src/theme/tokens.ts` — Generated light and dark token objects; never edited by hand
- `src/lib/` — API client, secure storage wrapper, analytics
- `.maestro/` — One flow per experience-skill journey
- `app.config.ts + eas.json` — App identity, runtime version, build profiles and update channels

## Naming
- Files: kebab-case.ts; components PascalCase.tsx; routes follow Expo Router conventions
- Tests: *.test.tsx beside the file; .maestro/<journey-id>.yaml
- Branches: type/short-description, e.g. feat/offline-drafts
- Components: PascalCase, named after the design-skill component

## From design and experience skills
When a Celestial design skill is in use, write its tokens as Style Dictionary tokens in `src/theme/tokens.ts`, and build its components in `src/components` with the same names and variants. Components read tokens only — no raw colours, sizes or font names.

When a Celestial experience skill is in use, give each journey one end-to-end test (happy path plus its error and empty states) and name analytics events `object_action` from its measures.

## Conventions
### Code
- Prefer small, pure functions and explicit types at module boundaries. _(Easier to test, review and change.)_
- Add native packages with npx expo install, and bump runtimeVersion whenever native code or config changes. _(Mismatched versions crash at launch; an update must never reach a binary it is not built for.)_

### Components
- Components read design tokens; no raw hex values, pixel sizes or font names in component code. _(One token change restyles the product.)_
- Platform differences live inside components (Platform.select or .ios.tsx/.android.tsx), not in screens. _(Screens stay readable and both platforms get the same behaviour by default.)_

### Data
- Analytics events are object_action in snake_case and come from the experience skill’s measures. _(Names stay consistent across teams and tools.)_

### Errors
- Every async action has loading, empty, error and success states, matching the experience skill. _(Unhandled states are where users get stuck.)_
- Each screen handles offline as its own state, with cached data shown and a retry; the root layout has an error boundary. _(Phones lose signal mid-journey; a blank screen loses the user.)_

### Security
- Secrets never live in the repository; read them from the environment or a secret store. _(A leaked key outlives the commit that removed it.)_
- Validate every input on the server, even when the client already did. _(Clients can be bypassed.)_
- Web pages ship a Content-Security-Policy, HSTS, X-Frame-Options and nosniff. _(Cheap protection against the most common attacks.)_
- Store tokens and personal data with expo-secure-store; never in AsyncStorage, logs or EXPO_PUBLIC_ variables. _(Anything in the bundle or plain storage can be read from a device or the app binary.)_

### Performance
- Render lists of unknown length with FlatList or FlashList and stable keys; never map an array inside a ScrollView. _(Virtualised lists hold the 60fps scroll target on low-end Android phones.)_

### Accessibility
- Use native elements first; add ARIA only when no native element fits. _(Native controls bring keyboard and screen-reader support for free.)_
- Every Pressable sets accessibilityRole and an accessibilityLabel when it has no visible text; touch targets are at least 44×44 points (use hitSlop when the visual is smaller). _(VoiceOver and TalkBack read roles and labels; small targets fail on both platforms.)_

## Do
- Test on one small Android device and one current iPhone before each release
- Honour the system font size and reduce-motion settings
- Ship JavaScript-only fixes to a staged update channel before production

## Don't
- Eject to bare native projects to fix something a config plugin can do
- Use inline style objects for shared components; read the theme
- Push an over-the-air update that changes behaviour store reviewers approved

## Quality gates
| Gate | Tool | Threshold | When |
|---|---|---|---|
| Lint and types | The stack’s linter and type checker | 0 errors | Every pull request |
| Unit and component tests | The stack’s test runner | All pass; every design-skill component state covered | Every pull request |
| Journey tests | Maestro on iOS simulator and Android emulator | One flow per experience-skill journey: happy path + error state, passing on both platforms | Every pull request |
| Accessibility | RNTL role queries + platform accessibility inspectors | Every interactive element has a role and label; WCAG 2.2 AA contrast from tokens; no new inspector warnings | Every pull request (inspectors before each store release) |
| Performance budget | Lab measurement in CI | Web: LCP ≤ 2.5s · INP ≤ 200ms · CLS ≤ 0.1 · ≤ 170KB JS per route. Mobile: cold start ≤ 2s · 60fps scroll | Every pull request |
| Dependency and secret scan | Dependency audit + secret scanner | No high or critical findings; no secrets | Every pull request and nightly |

The Accessibility gate checks Celestial accessibility core v1.0 (WCAG 2.2 AA); it can change tool but is never skipped. Automated: A11Y-C1, A11Y-F1, A11Y-I1, A11Y-N1, A11Y-N2, A11Y-S1, A11Y-L2, A11Y-P1 (partly). Manual pass before release: A11Y-K1, A11Y-G1, A11Y-R1, A11Y-M1, A11Y-O1, A11Y-V1, A11Y-E1, A11Y-U1, A11Y-L1 — keyboard-only run, screen reader on each journey step, 200% zoom and 320px width, reduced motion, captions on any media. Requirement IDs come from the design and experience skills this code builds. This layer owns: **A11Y-F1** A visible focus indicator on every interactive element, never hidden behind sticky bars (WCAG 2.4.7, 2.4.11); **A11Y-R1** Text works at 200% zoom, at 320px width, with increased text spacing and in either orientation (WCAG 1.4.4, 1.4.10, 1.4.12, 1.3.4); **A11Y-M1** Motion respects the reduced-motion setting; anything moving for over 5 seconds can be paused; nothing flashes more than 3 times a second (WCAG 2.2.2, 2.3.1, 2.3.3 (AAA, advised)); **A11Y-O1** Tooltips and pop-overs shown on hover or focus can be dismissed, hovered and stay until dismissed (WCAG 1.4.13); **A11Y-I1** Images, icons and charts have text alternatives (empty for decoration); text is never an image (WCAG 1.1.1, 1.4.5); **A11Y-V1** Video and audio have captions, transcripts or audio description; nothing plays sound automatically for over 3 seconds (WCAG 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.4.2); **A11Y-K1** Every action works by keyboard in a logical order, with no keyboard traps; single-key shortcuts can be turned off or remapped (WCAG 2.1.1, 2.1.2, 2.1.4, 2.4.3); **A11Y-G1** Nothing is drag-, gesture- or motion-only: each has a single tap or click alternative, and actions fire on release so they can be cancelled (WCAG 2.5.1, 2.5.2, 2.5.4, 2.5.7); **A11Y-N1** Every page has a clear title, headings, landmarks and a skip link, and can be found more than one way (WCAG 2.4.1, 2.4.2, 2.4.5, 2.4.6); **A11Y-N2** Controls have visible labels and instructions; links say where they go; the accessible name contains the visible label (WCAG 2.4.4, 2.5.3, 3.3.2); **A11Y-S1** Status, results and errors are announced to screen readers (WCAG 4.1.3); **A11Y-E2** Never ask for the same information twice in one flow; personal fields declare their purpose so they can be autofilled (WCAG 3.3.7, 1.3.5); **A11Y-U1** Focusing or changing a field never moves the person somewhere else or submits without warning (WCAG 3.2.1, 3.2.2); **A11Y-W1** Time limits warn first and can be extended (WCAG 2.2.1); **A11Y-L2** The page language, and any passage in another language, is declared in code (WCAG 3.1.1, 3.1.2); **A11Y-P1** Structure, order, names, roles and states are in the code: native elements first, ARIA only following the WAI-ARIA patterns (WCAG 1.3.1, 1.3.2, 4.1.2).

## Workflow
- Branching: Trunk-based: short-lived branches off main, squash-merged within two days.

**Review checklist**
- Correctness: does it do what the issue asks, including edge cases?
- Readability: could a new teammate change it safely?
- Architecture: is it in the right place, with the right boundaries?
- Security: inputs, secrets, permissions, dependencies
- Performance: budgets, queries, bundle size
- Tests fail when the code is broken (flip a condition and re-run)
- One approving review; two for auth, payments or native dependency changes
- Reviewer installs the internal preview build or opens the update on a device

**Definition of done**
- Acceptance criteria met and demoed on the preview link
- Tests added for new behaviour and every state
- Accessibility and performance gates green
- Analytics events named from the experience skill
- Docs or changelog updated when behaviour changes
- Checked on iOS and Android, in light and dark mode, at the largest system font size

**Release**
- Small pull requests (aim for under 400 changed lines)
- CI green before review
- Squash-merge to main; main is always deployable
- Every release has a written rollback path
- Store release every two weeks from main; phased rollout starting at 10%
- JavaScript-only fixes go out through EAS Update to the matching runtime version

**Incidents**
- Republish the previous update to the channel to roll back JavaScript; halt the phased rollout for native issues
- Write a blameless note within 48 hours: what happened, impact, fix, prevention

## Overrides of the engineering core
- Preview deploy: Replaced by an internal preview build or an EAS Update on a preview channel per pull request — Mobile apps have no web link; reviewers open the change on a device instead.
- Performance budget: Mobile thresholds apply: cold start ≤ 2s on a mid-range Android device · 60fps scroll — Web vitals do not measure native screens.

## Examples
### Accessible button from tokens (`src/components/button/Button.tsx`)

```tsx
import { Pressable, Text, StyleSheet, type PressableProps } from 'react-native';
import { useTheme } from '@/theme/use-theme';

type Props = PressableProps & { label: string; variant?: 'primary' | 'secondary' };

export function Button({ label, variant = 'primary', disabled, ...props }: Props) {
  const t = useTheme();
  const bg = variant === 'primary' ? t.color.primary : t.color.surface;
  const fg = variant === 'primary' ? t.color.onPrimary : t.color.ink;
  return (
    <Pressable
      accessibilityRole="button"
      accessibilityState={{ disabled: !!disabled }}
      disabled={disabled}
      style={({ pressed }) => [styles.base, { backgroundColor: bg, borderRadius: t.radius.control, opacity: pressed ? 0.8 : 1 }]}
      {...props}
    >
      <Text style={[t.type.label, { color: fg }]}>{label}</Text>
    </Pressable>
  );
}

const styles = StyleSheet.create({ base: { minHeight: 44, minWidth: 44, alignItems: 'center', justifyContent: 'center', paddingHorizontal: 16 } });
```

## Further reading
- [Expo documentation](https://docs.expo.dev/) — Expo Router, EAS Build, EAS Update and runtime versions.
- [React Native documentation](https://reactnative.dev/docs/getting-started) — Core components, accessibility props and list performance.
- [OWASP Cheat Sheet Series](https://cheatsheetseries.owasp.org/) — Guidance on storing credentials and handling data on mobile clients.
Files in this package (4)
  • AGENTS.md 7 KB
  • README.md 2 KB
  • SKILL.md 14 KB
  • rules/expo-react-native-app-engineering.mdc 5 KB

Versions

The database has no other skills named expo-react-native-app-engineering.

Database snapshot: 13.11.2026 · package version 4cebcb025c82 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100nextjs-app-engineering
    Engineering skill: Next.js full-stack app — how to build and ship a web app with Next.js (App Router) on React, TypeScript, Tailwind CSS, Vitest. Use when writing, reviewing, testing or releasing code in this stack, and when turning a Celestial design or experience skill into code.
  • 91stack-expo
    Conventions for the Expo / React Native stack (Expo Router screens per task, components/<f>, lib owners). Use when adding a screen, component, navigation or API call in this app.
  • 100react-web-app-engineering
    Engineering skill: React web app — how to build and ship a web app with React, TypeScript, Tailwind CSS, Vitest. Use when writing, reviewing, testing or releasing code in this stack, and when turning a Celestial design or experience skill into code.
  • 86mobile-app-dev
    Use when scaffolding or deploying Expo/React Native apps.
  • 100react-native-expert
    Senior React Native and Expo engineer for building production-ready cross-platform mobile apps. Use when building React Native components, implementing navigation with Expo Router, optimizing list and scroll performance, working with animations via Reanimated, handling…
  • 95react-native
    Cross-platform mobile development with React Native and Expo. Use when building iOS/Android apps with JavaScript/TypeScript, implementing native features, or optimizing mobile performance.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.