Documentation Index
Fetch the complete documentation index at: https://docs.mobile-starter.amisi.ai/llms.txt
Use this file to discover all available pages before exploring further.
@amisi/analytics
@amisi/analytics provides an adapter-based analytics API with first-party support for Firebase Analytics (GA4) and Firebase Crashlytics.
Adapter model
-
Contract
- Adapters implement the shared
AnalyticsAdaptercontract.
- Adapters implement the shared
-
Runtime selection
- Select the active adapter at runtime using
initializeAnalytics({ adapter, options }).
- Select the active adapter at runtime using
-
Built-in adapters
firebasemock
Initialize
Initialize once at app startup. The starter app initializes analytics inapps/mobile/app/_layout.tsx and gates collection using feature flags:
flags.enableAnalyticsflags.enableCrashReporting
Track interactions and events
Use the hook inside screens/components:Record errors
For non-fatal errors you want to see in Crashlytics:Firebase configuration
The Firebase adapter requires native Firebase configuration for iOS/Android builds:-
iOS
GoogleService-Info.plist
-
Android
google-services.json
@react-native-firebase/auth.