> AI agents: this is one page from PostHog's docs. Full index of Markdown docs for LLMs: https://posthog.com/llms.txt # React Native Error Tracking installation Canonical URL: https://posthog.com/docs/error-tracking/installation/react-native > **Cloud region:** This page uses US Cloud hosts. For an EU Cloud project, use `https://eu.i.posthog.com` instead of `https://us.i.posthog.com` (ingestion host), and use `https://eu.posthog.com` instead of `https://app.posthog.com` (app host for links). ## On this page - [Install with the wizard](#install-with-the-wizard) - [Install the package](#install-the-package) - [Configure PostHog](#configure-posthog) - [Send events](#send-events) - [Set up exception autocapture](#set-up-exception-autocapture) - [Set up error boundaries](#set-up-error-boundaries) - [Manually capture exceptions](#manually-capture-exceptions) - [Future features](#future-features) - [Verify error tracking](#verify-error-tracking) - [Upload source maps & native symbols](#upload-source-maps--native-symbols) - [iOS dependency resolution for native crash capture](#ios-dependency-resolution-for-native-crash-capture) ## Install with the wizard Run this command in your project directory to add PostHog to your React Native project. The wizard detects your framework, installs the SDK, and sets up your first events. `npx @posthog/wizard` Or set it up manually by following the rest of this guide. 1. 1 ## Install the package Required Install the PostHog React Native library and its dependencies: ### Expo ```bash npx expo install posthog-react-native expo-file-system expo-application expo-device expo-localization ``` ### yarn ```bash yarn add posthog-react-native @react-native-async-storage/async-storage react-native-device-info react-native-localize # for iOS cd ios && pod install ``` ### npm ```bash npm i -s posthog-react-native @react-native-async-storage/async-storage react-native-device-info react-native-localize # for iOS cd ios && pod install ``` 2. 2 ## Configure PostHog Required PostHog is most easily used via the `PostHogProvider` component. Wrap your app with the provider: App.tsx ```jsx import { PostHogProvider } from 'posthog-react-native' export function MyApp() { return ( ) } ``` 3. 3 ## Send events Recommended Once installed, PostHog will automatically start capturing events. You can also manually send events using the `usePostHog` hook: Component.tsx ```jsx import { usePostHog } from 'posthog-react-native' function MyComponent() { const posthog = usePostHog() const handlePress = () => { posthog.capture('button_pressed', { button_name: 'signup' }) } return