This repository serves as a reference implementation for using the PostHog React Native SDK with Expo. It demonstrates how to:
- Set up PostHog tracking in a React Native Expo application
- Configure the PostHog provider
- Implement session replay
- Use PostHog surveys
- Handle theme changes and navigation
- Clone this repository
- Install dependencies:
npm install
- Start the development server:
npx expo start
You can also run this app in web mode, which is useful for supporting some use cases:
npx expo start --web- PostHog initialization and configuration
- Session replay implementation
- Survey integration
- Theme-aware tracking
- Navigation tracking
- Node.js
- Expo CLI
- iOS Simulator or Android Emulator (or physical device)
For more information about the PostHog React Native SDK, visit our official documentation.