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.
Prerequisites
Before you start, ensure you have the following installed:Node.js & npm
Node.js & npm
Expo CLI
Expo CLI
Android Studio (for Android)
Android Studio (for Android)
- Download from https://developer.android.com/studio
- Install Android SDK (API 33+)
- Configure
ANDROID_HOMEenvironment variable: - Create or start an Android Virtual Device (AVD)
Xcode (for iOS - macOS only)
Xcode (for iOS - macOS only)
- Install Xcode from the App Store
- Install Xcode Command Line Tools:
- Install CocoaPods:
Installation
1. Clone the Repository
2. Install Dependencies
package.json:
- Core Dependencies
- Camera & AI
- Audio
expov54.0.33 - Development frameworkreact19.1.0 - UI libraryreact-native0.81.5 - Mobile framework
3. Prebuild Native Code
Since PokéDex Fleek uses native modules (camera, vision), you need to generate iOS/Android native projects:This creates
ios/ and android/ directories with native code. Only run this once unless you change native dependencies.Development Server
Starting the Dev Server
Run the Expo development server:Running on Android
Option 1: Physical Device (Recommended)
-
Enable Developer Options on your Android device:
- Go to Settings → About Phone
- Tap “Build Number” 7 times
- Go back to Settings → Developer Options
- Enable “USB Debugging”
- Connect your device via USB
-
Verify device connection:
-
Run the app:
Option 2: Android Emulator
-
Start Android Studio AVD Manager:
-
Run the app:
Running on iOS (macOS only)
Option 1: iOS Simulator
-
Open Simulator:
-
Install pods (first time only):
-
Run the app:
Option 2: Physical iPhone/iPad
- Connect your device via USB
-
Open Xcode and configure signing:
- Select your device in the toolbar
- Go to Signing & Capabilities
- Add your Apple Developer account
- Select your team
-
Run from terminal:
Hot Reload & Fast Refresh
Fast Refresh (Automatic)
- Enabled by default - saves files and UI updates instantly
- Preserves component state during most edits
- Works for React component changes
Manual Reload
If you need to force a reload:- Android
- iOS
- Shake device or press
Ctrl+M(emulator) - Tap “Reload”
- Or press
rin Metro terminal
When to Reload Manually
- After changing native code or dependencies
- After modifying
app.jsonorbabel.config.js - If Fast Refresh isn’t working properly
- After changing environment variables
Debugging
React Native DevTools
Method 1: Chrome DevTools (Legacy)
- Open the developer menu (shake device)
- Tap “Debug Remote JS”
- Opens
http://localhost:8081/debugger-uiin Chrome - Open Chrome DevTools (
F12orCmd+Option+I)
Remote debugging is deprecated and doesn’t work with the New Architecture.
Method 2: Flipper (Recommended)
-
Install Flipper:
- Download from https://fbflipper.com/
-
Start Flipper:
-
Features:
- Layout Inspector
- Network requests
- Logs viewer
- React DevTools integration
Method 3: Expo Dev Tools
Console Logs
View logs in terminal:Debugging Tips
Network Requests
Network Requests
Monitor PokéAPI calls:
Camera Issues
Camera Issues
Check permissions:
Color Detection
Color Detection
Debug color extraction:
Common Development Issues
Metro Bundler Issues
Port Already in Use
Port Already in Use
Error:
Port 8081 already in useSolution:Cache Issues
Cache Issues
Error: Stale cache or outdated modulesSolution:
Module Not Found
Module Not Found
Error:
Unable to resolve module ...Solution:Android-Specific Issues
Gradle Build Fails
Gradle Build Fails
Error: Gradle build errorsSolution:
Camera Not Working
Camera Not Working
Error: Camera shows black screenCheck:
- Permissions in
AndroidManifest.xml: - Runtime permissions granted
- Camera hardware available (not in emulator)
iOS-Specific Issues
Pod Install Fails
Pod Install Fails
Error: CocoaPods errorsSolution:
Code Signing Issues
Code Signing Issues
Error: Code signing failsSolution:
- Open
ios/PokedexFleek.xcworkspacein Xcode - Go to Project Settings → Signing & Capabilities
- Enable “Automatically manage signing”
- Select your development team
Environment Variables
If you add API keys or secrets:Performance Tips
Fast Refresh
Keep Fast Refresh enabled for instant feedback during development.
Hermes Engine
Enabled by default in Expo 54+ for faster startup and lower memory usage.
Development Build
Use custom dev builds instead of Expo Go for full native module support.
Incremental Builds
After first build, subsequent builds are much faster (30-60s).
Next Steps
Project Structure
Understand the codebase architecture
Building for Production
Create release builds with EAS