An open API service indexing awesome lists of open source software.

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

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).