A streamlined setup guide to run Expo, Next.js, and React Native in a unified project.
Installation This repository uses yarn 4 and node 22.
yarn install
Start Development Servers
yarn expo:start
yarn next:dev
Folder | Description |
---|---|
app/ |
Core app logic |
(native)/ |
Expo-specific components |
(next)/ |
Next.js-specific components |
assets/ |
Static images, fonts, and media |
components/ |
Reusable UI components |
config/ |
Application configuration |
constants/ |
Global constants |
hooks/ |
Custom React hooks |
store/ |
State management setup |
style/ |
Global styles |
vendors/ |
Third-party libraries |
Script | Description |
---|---|
yarn expo:start |
Launch Expo in development |
yarn expo:android |
Run Expo on Android device/emulator |
yarn expo:ios |
Run Expo on iOS simulator |
yarn expo:web |
Run Expo in a web browser |
yarn expo:reset-project |
Reset Expo cache and state |
yarn next:dev |
Start Next.js dev server |
yarn next:build |
Build Next.js app for production |
yarn next:start |
Serve built Next.js app |
yarn lint |
Run ESLint |
yarn test |
Run tests with Jest |
File | Purpose |
---|---|
app.json |
Expo configuration |
babel.config.js |
Babel setup |
metro.config.js |
Metro bundler settings |
next.config.js |
Next.js configuration |
tailwind.config.js |
TailwindCSS settings |
tsconfig.json |
TypeScript configuration |
postcss.config.mjs |
PostCSS configuration |
<Head>
from next/head
for meta tagsnext/image
expo-router
Expo:
expo build:android # Build APK
expo build:ios # Build iOS app
Next.js:
yarn next:build
yarn next:start