@posthog/react-native-plugin
v2.0.1
Published
PostHog React Native plugin for iOS and Android integrations
Readme
@posthog/react-native-plugin
PostHog React Native plugin for iOS and Android integrations.
This package bridges React Native to the native PostHog SDKs, enabling session replay and native error tracking. It is consumed automatically by posthog-react-native when installed — you do not call it directly.
Installation
npm install posthog-react-native @posthog/react-native-plugin
# or
yarn add posthog-react-native @posthog/react-native-pluginiOS requires a pod install:
cd ios && pod installNative error tracking
Native error tracking is controlled by the React Native SDK option:
new PostHog('<ph_project_api_key>', {
errorTracking: {
nativeAutocapture: true,
},
})