Prerequisites
Before you begin, ensure you have the following installed:Node.js
Version 18.0 or higher
npm or yarn
Package manager for dependencies
Expo CLI
For running and building the app
Git
Version control system
Platform-Specific Requirements
- iOS Development
- Android Development
- macOS required for iOS development
- Xcode 14.0 or higher
- iOS Simulator (included with Xcode)
- CocoaPods installed:
sudo gem install cocoapods
Installation Steps
Install Dependencies
Install all required npm packages:Or using yarn:
The installation includes React Native, Expo SDK, Supabase client, and all UI libraries.
Configure Environment Variables
Create a
.env file in the project root with your Supabase credentials:.env
iOS Setup (macOS only)
Install iOS dependencies:
This step is only required if you’re developing for iOS.
Project Structure
After installation, your project structure should look like this:Development Setup
Expo Go App
For quick development, use the Expo Go app:Install Expo Go
Download from:
- App Store (iOS)
- Play Store (Android)
Some features like barcode scanning require a development build and won’t work in Expo Go.
Development Build
For full feature access, create a development build:Troubleshooting
Metro bundler cache issues
Metro bundler cache issues
Clear the Metro bundler cache:Or reset the project:
iOS pod install fails
iOS pod install fails
Try these steps:
Android build errors
Android build errors
Clean and rebuild:
Supabase connection issues
Supabase connection issues
Verify your environment variables:Ensure the variables start with
EXPO_PUBLIC_ prefix.Font loading errors
Font loading errors
Fonts are loaded in Ensure all font files exist in the
_layout.tsx. If fonts fail to load:assets/fonts/ directory.Verify Installation
Test that everything is working:Next Steps
Configuration
Configure app settings and features
Overview
Learn about app architecture