Before getting started, ensure the following are installed on your system:
- Node.js (Latest LTS Version Recommended)
- npm or yarn
- Git
- VS Code or any preferred IDE
Create a new Expo project using:
npx create-expo-app@latestExpo provides multiple templates that can be used based on project requirements.
To create a project using Expo SDK 56:
npx create-expo-app@latest --template default@sdk-56cd <project-name>Start the development server:
npx expo startThis will launch the Expo development server and generate a QR code for testing on physical devices.
After running:
npx expo startYou can use the following shortcuts directly from the terminal:
a → Open Android Emulator / Connected Android Device
i → Open iOS Simulator (macOS Only)
w → Open Web Browser
r → Reload Application
m → Open Developer Menu
j → Open Debugger
o → Open Project in Editor
? → Show All Available Commands
- Install Expo Go from the Google Play Store.
- Ensure the installed Expo Go version supports Expo SDK 56.
- Connect your mobile device and development machine to the same network.
- Scan the QR code displayed in the terminal or browser.
- Install Expo Go from the Apple App Store.
- Ensure the installed Expo Go version supports Expo SDK 56.
- Open Expo Go and scan the QR code generated by Expo.
Run:
npx expo start --webOr simply press:
w
from the Expo terminal.
Download Expo Go from:
Important:
- Always install a version of Expo Go that supports your project's SDK version.
- For this project, ensure Expo Go supports Expo SDK 56.
- Physical devices are recommended for testing camera, notifications, sensors, location services, and other native features.
Expo Router provides a file-based routing system similar to Next.js.
When creating a project using:
npx create-expo-app@latest --template default@sdk-56Expo Router is generally pre-configured and ready to use.
If routing is not already configured, install the required dependencies:
npx expo install expo-router react-native-safe-area-context react-native-screens expo-linking expo-constants expo-status-barFor complete manual installation instructions, visit:
https://docs.expo.dev/router/installation/
Example project structure:
app/
│
├── _layout.tsx
├── index.tsx
│
├── home/
│ └── index.tsx
│
└── profile/
└── index.tsx
Example routes:
/ → app/index.tsx
/home → app/home/index.tsx
/profile → app/profile/index.tsx
project-root/
│
├── app/
│
├── src/
│ ├── assets/
│ ├── components/
│ ├── screens/
│ ├── services/
│ ├── hooks/
│ ├── utils/
│ ├── constants/
│ ├── theme/
│ ├── config/
│ └── store/
│
├── public/
├── package.json
├── app.json
├── tsconfig.json
└── README.md
npx create-expo-app@latestnpx create-expo-app@latest --template default@sdk-56npx expo startnpx expo start --webnpx expo install expo-router react-native-safe-area-context react-native-screens expo-linking expo-constants expo-status-barnpm installnpx expo start --clearnpm run reset-projecthttps://docs.expo.dev/router/introduction/