Frontend overview
One Expo / React Native codebase targets Android, iOS and web. It uses Expo Router for file-based navigation and Nativewind for Tailwind-style classes.
apps/frontend/
├── src/app/ Routes (Expo Router): (tabs)/index, friends, profile, trips/[id]
├── global.css Tailwind entry, imported once in src/app/_layout.tsx
├── app.json Expo config
├── eas.json EAS build profiles
└── .env EXPO_PUBLIC_API_URL (from .env.example)
Run it with .\vesper frontend or as part of .\vesper dev. See Daily development for API URLs per device.
Styling: pinned versions
Nativewind v5 RC (Tailwind v4). These versions are pinned on purpose; don't bump them casually:
| Package | Version |
|---|---|
nativewind | 5.0.0-rc.0 |
react-native-css | 3.1.0-rc.0 |
tailwindcss, @tailwindcss/postcss | 4.1.12 |
lightningcss | 1.30.1 |
The root package.json must keep "overrides": { "lightningcss": "1.30.1" }, because npm only honours overrides at the root. Check it with npm ls lightningcss. No Babel config is needed.
Expo Go vs a development build
The project includes expo-dev-client. Press s in the Expo terminal to switch to Expo Go for quick runs. If a native module is missing there, make a dev build with npx expo run:android (needs the JDK) or eas build --profile development --platform android.
Rules
- The app talks only to the Vesper API, never to the database or third-party APIs with secret keys.
EXPO_PUBLIC_*values ship inside the app bundle: never put secrets in them.- Sample data in
src/data/is temporary; screens will move to the API as endpoints land.