A production-ready starter for React Native apps with Expo — the base I use to start every new mobile project, with a modern, organized structure from day one. Click Use this template to start your own.
What's included:
- Expo SDK 57 + Expo Router (
Stack.Protected+ Tabs) - TypeScript (strict)
- Its own design system in
src/theme/(tokens + semantic color roles) - TanStack Query (server state) + Zustand (client state)
- React Hook Form + Zod
- ESLint (flat config) + Prettier + jest-expo
- Pure CNG: native folders are generated on demand with
expo prebuild - A mock mode to run the whole app without a back-end
Conventions and architecture are documented in
CLAUDE.md.
| Name | Install command (Windows, PowerShell) |
|---|---|
| Chocolatey | https://chocolatey.org/install |
| Node.js 20+ | choco install nodejs-lts |
| Yarn | npm install -g yarn |
Make sure the Android SDK and an emulator are installed through Android Studio. The project targets Expo SDK 57 (React Native 0.86).
- Install the dependencies:
yarn- Configure the environment (API URL):
copy .env.example .env- Run the app:
yarn start # dev server (Expo Go / dev client)
yarn dev # native build on an Android device/emulatorTo browse the app without a real API (authentication is replaced by mocks):
yarn dev:test # native build + mock mode
yarn start:test # dev server only, in mock mode (if the app is already installed)Login: admin · Password: 123
The mode is controlled by EXPO_PUBLIC_MOCK_API (inlined into the bundle by Metro):
switching modes requires restarting the dev server — if a regular yarn start is
running, close it before dev:test. Mocks live in src/features/<feature>/mock.ts.
💡 If Expo complains that the emulator took too long to start, launch the emulator manually first (Android Studio > Device Manager, or
%LOCALAPPDATA%\Android\Sdk\emulator\emulator @<avd-name>) and run the command again. If the emulator shows asofflineinadb devices, cold boot it:emulator @<avd-name> -no-snapshot-load.
Run everything at once:
yarn validate # lint + typecheck + test + audit + depchecknpx expo-doctoryarn auditdepcheckKnown false positives are listed in
.depcheckrc.yml.
yarn lintyarn typecheck
yarn testThe project uses pure CNG: the android/ and ios/ folders are not committed —
they are generated from app.json when needed:
npx expo prebuild --platform android # generate the native folder (optional)
yarn dev # automatic prebuild + build + install on the deviceAny native configuration goes through app.json/config plugins, never by editing
android/ by hand (the folder is disposable).
Template by Luan Silveira Macea · luanmacea@gmail.com · @luanmacea