For the app to work properly, you need to set up your environment variables. Create a .env file in the root directory with the following variables:
EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key
EXPO_PUBLIC_MAPBOX_ACCESS_TOKEN=your_mapbox_access_token
EXPO_PUBLIC_CONVEX_URL=your_convex_url
Replace your_clerk_publishable_key, your_mapbox_access_token, and your_convex_url with your actual API keys.
- Install dependencies:
pnpm install- Start the development server:
pnpm run dev- If you encounter Reanimated initialization issues, try clearing the cache:
pnpm expo start --clearIf you're seeing errors about React Native Reanimated not being initialized, try these steps:
- Make sure you have the Reanimated plugin in your babel.config.js
- Kill any running Metro bundler instances
- Clear the cache with
pnpm expo start --clear - Restart the development server