This directory contains example apps demonstrating @lugg/maps.
example/
├── bare/ # Bare React Native (react-native-community/cli)
├── expo/ # Expo managed workflow
└── shared/ # Shared components used by both examples
Copy the example env file and add your Google Maps API key:
cp bare/.env.example bare/.env
cp expo/.env.example expo/.envEdit both .env files with your API key:
GOOGLE_MAPS_API_KEY=your_api_key_here
The Expo .env also exposes the key to the web example:
EXPO_PUBLIC_GOOGLE_MAPS_API_KEY=${GOOGLE_MAPS_API_KEY}From the repo root:
# Install dependencies
yarn
# Run bare example
yarn bare ios
yarn bare android
# Run expo example
yarn expo ios
yarn expo android
# Run web example
yarn expo webThe shared/ directory contains reusable components and utilities used by both example apps. This ensures consistent behavior across different React Native environments.