https://github.com/posthog/support-rn-expo
React Native app with Expo showcasing how to use PostHog there
https://github.com/posthog/support-rn-expo
Last synced: 6 months ago
JSON representation
React Native app with Expo showcasing how to use PostHog there
- Host: GitHub
- URL: https://github.com/posthog/support-rn-expo
- Owner: PostHog
- Created: 2025-05-23T16:11:04.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-07-03T13:25:29.000Z (6 months ago)
- Last Synced: 2025-07-17T21:29:58.442Z (6 months ago)
- Language: TypeScript
- Size: 565 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PostHog React Native SDK Example with Expo
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
## Getting Started
1. Clone this repository
2. Install dependencies:
```bash
npm install
```
3. Start the development server:
```bash
npx expo start
```
You can also run this app in web mode, which is useful for supporting some use cases:
```bash
npx expo start --web
```
## Key Features Demonstrated
- PostHog initialization and configuration
- Session replay implementation
- Survey integration
- Theme-aware tracking
- Navigation tracking
## Requirements
- Node.js
- Expo CLI
- iOS Simulator or Android Emulator (or physical device)
## Learn More
For more information about the PostHog React Native SDK, visit our [official documentation](https://posthog.com/docs/integrate/client/react-native).