Documentation Index
Fetch the complete documentation index at: https://mintlify.com/soymatudev/Pokedex-Fleek/llms.txt
Use this file to discover all available pages before exploring further.
Installation Guide
This guide provides comprehensive instructions for setting up PokéDex Fleek development environment on your system.System Requirements
Minimum Requirements
Operating System
- macOS: 12.0+ (for iOS development)
- Windows: 10/11 (for Android only)
- Linux: Ubuntu 20.04+ (for Android only)
Hardware
- RAM: 8GB minimum, 16GB recommended
- Storage: 20GB free space
- Physical Device: Android or iOS device with camera
Software Requirements
| Software | Version | Required For |
|---|---|---|
| Node.js | 18.x or higher | All platforms |
| npm | 9.x or higher | All platforms |
| Expo CLI | Latest | All platforms |
| Android Studio | Latest | Android development |
| Xcode | 14+ | iOS development |
| CocoaPods | 1.11+ | iOS development |
| Java JDK | 17 | Android development |
Development Environment Setup
1. Install Node.js and npm
- macOS
- Windows
- Linux
Using Homebrew:Verify installation:
2. Install Expo CLI
3. Clone and Install Project
Platform-Specific Setup
Android Development
Install Android Studio
- Download from developer.android.com
- Run the installer
- During setup, ensure these components are installed:
- Android SDK
- Android SDK Platform (API 33 or higher)
- Android Virtual Device (optional)
Configure Environment Variables
- macOS/Linux
- Windows
Add to Apply changes:
~/.bashrc, ~/.zshrc, or ~/.bash_profile:Enable USB Debugging on Device
- Open Settings on your Android device
- Go to “About phone”
- Tap “Build number” 7 times to enable Developer options
- Go back to Settings → Developer options
- Enable “USB debugging”
- Connect device via USB
- Accept the “Allow USB debugging” prompt on device
iOS Development
Install Xcode
- Download Xcode from the Mac App Store
- Open Xcode and install additional components when prompted
- Accept the license agreement:
Expo Development Build Setup
Generate Native Code
- Generates the
android/directory with Android native project - Generates the
ios/directory with iOS native project - Configures native modules based on
app.json
The
prebuild command uses the configuration from app.json to set up:- App name and bundle identifier
- Permissions (camera, microphone)
- Plugins (react-native-vision-camera, react-native-video)
- Icons and splash screens
Build and Run Development Build
- Downloads native dependencies
- Compiles native code
- Installs the development build on your device
Camera Permission Configuration
PokéDex Fleek requires camera access to function. The permissions are pre-configured inapp.json:
iOS Permissions
app.json
Android Permissions
app.json
Vision Camera Plugin
app.json
If you modify permissions in
app.json, you must run npx expo prebuild --clean to regenerate the native projects.Verification Steps
Verify your installation is complete:Check Development Server
Start the Expo dev server:You should see:
- QR code (though you can’t use it with Expo Go)
- Development server running on port 8081
- Options menu for running on different platforms
Test Camera Access
- Launch the app on your physical device
- Navigate to the Scanner/Camera screen
- Grant camera permissions when prompted
- Verify camera feed is visible
Development Workflow
Once installed, use these commands for daily development:Fast Refresh: After the initial build, you can make JavaScript/TypeScript changes and they’ll hot-reload automatically without rebuilding the native code.
Troubleshooting Installation Issues
Android Build Fails: SDK Not Found
Android Build Fails: SDK Not Found
Ensure If not set, follow the environment variables setup in the Android section.
ANDROID_HOME is set correctly:iOS Build Fails: CocoaPods Error
iOS Build Fails: CocoaPods Error
Clean and reinstall pods:
Metro Bundler Port Conflict
Metro Bundler Port Conflict
If port 8081 is in use:
Cannot Connect to Device
Cannot Connect to Device
Android:iOS:
- Unplug and replug device
- Ensure device is unlocked
- Re-trust the computer on device
Prebuild Fails
Prebuild Fails
Clear Expo cache and retry:This removes existing
ios/ and android/ directories and regenerates them.Native Module Not Found Error
Native Module Not Found Error
If you see errors about missing native modules:
- Ensure you’re not using Expo Go
- Rebuild the native app:
- If issue persists, clean rebuild:
Next Steps
Quick Start
Start scanning and matching Pokémon
Architecture Overview
Learn about the project structure
Need more help? Check the Expo documentation or React Native Vision Camera docs for platform-specific issues.