schema0-mobile

Installation
SKILL.md

Mobile Platform

React Native / Expo app at apps/mobile/. Skip this if apps/mobile/ does not exist.

Overview

Mobile apps use a single Cloudflare Worker (apps/mobile/worker.ts) that handles both static assets and API. API routes are mounted at /rpc via Hono + RPCHandler using the same routers from packages/api/.

Key Differences from Web

  • Uses @tanstack/react-query directly (NOT TanStack DB / useLiveQuery)
  • Data fetching: useQuery(orpc.{entity}.selectAll.queryOptions())
  • Auth via @schema0/auth-mobile + WorkOS (NOT @template/auth)
  • API calls go to deployed backend at EXPO_PUBLIC_WEB_URL/rpc
  • Environment variables use EXPO_PUBLIC_* prefix
  • Navigation via Expo Router (file-based)

Required Env Vars

Related skills
Installs
17
Repository
schema0/skills
First Seen
Apr 16, 2026