Skip to main content
Mock services activate automatically when API keys are missing. Add credentials via yarn setup to use real services - no code changes needed.

How It Works

Placeholder values like your-ios-key from .env.example will also trigger mock mode. This prevents SDK credential errors - you can safely copy .env.example to .env and the app will work in mock mode.

Available Mocks


Backend Mocks

Full simulation of auth, database, storage, and realtime.

Test Accounts

Testing Utilities


Other Service Mocks

RevenueCat

PostHog

Events logged to console with [MockPostHog] prefix. Feature flags return false by default.

Sentry

Errors logged to console with [MockSentry] prefix instead of being sent to Sentry.

Console Logging

All mock operations log to console:

Limitations

  • Data clears on app restart
  • Security policies (RLS, function auth) not enforced
  • Network performance not simulated
  • Realtime subscriptions simulated locally
For production testing, connect real services via yarn setup.

Switching to Real Services

The wizard prompts for credentials. Once configured, the app automatically uses real services - no code changes needed. You can also manually set environment variables in apps/app/.env:
Restart Metro after changing environment variables: yarn start --clear