Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/onboarding/error-tracking/react-native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const getReactNativeSteps = (ctx: OnboardingComponentsContext): StepDefin
{dedent`
\`nativeCrashes\` captures native iOS and Android crashes that the JavaScript layer can't see. Beyond the config above, it needs:

1. The optional native plugin installed — \`npx expo install @posthog/react-native-plugin@2\` (Expo) or \`npm i @posthog/react-native-plugin@2\` (bare React Native). If it's missing, native capture is a no-op and your JS-level autocapture is unaffected.
1. The optional native plugin installed — \`npx expo install @posthog/react-native-plugin@3\` (Expo) or \`npm i @posthog/react-native-plugin@3\` (bare React Native). Plugin 3.0 requires React Native 0.75+, iOS 15+, and Xcode 26+. If it's missing, native capture is a no-op and your JS-level autocapture is unaffected.
2. Your project's **Enable exception autocapture** setting enabled in [error tracking settings](https://app.posthog.com/settings/project-error-tracking#exception-autocapture) — the same server-side setting that gates JavaScript autocapture.
3. Native debug symbols uploaded at build time, so crash stack traces are readable. See [native crash symbolication](https://posthog.com/docs/error-tracking/upload-source-maps/react-native#native-crash-symbolication).
`}
Expand Down
16 changes: 7 additions & 9 deletions docs/onboarding/session-replay/kmp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ export const getKMPSteps = (ctx: OnboardingComponentsContext): StepDefinition[]
`0.+` resolves to the latest `0.x` release. The SDK is a pre-release, so the API can change
between minor versions – pin an exact version from [Maven
Central](https://central.sonatype.com/artifact/com.posthog/posthog-kmp) if you would rather
upgrade deliberately. The setup below requires `0.8.0` or higher.
upgrade deliberately. The setup below requires `0.11.0` or higher.
</Markdown>
<CalloutBox type="fyi" title="Supported targets">
<Markdown>
Session replay is captured on Android, iOS and the web. It is ignored on the JVM (desktop)
target.
and macOS targets.
</Markdown>
</CalloutBox>
</>
Expand Down Expand Up @@ -97,16 +97,14 @@ export const getKMPSteps = (ctx: OnboardingComponentsContext): StepDefinition[]
// Capture console and system logs (iOS and web). Default is false.
captureLogs = false,

// Whether replays are created using high quality screenshots instead of
// wireframes (experimental, Android and iOS). Default is false.
// Screenshots may contain sensitive information, so use with caution.
screenshot = false,

// Capture Android logcat output (Android only). Default is true.
captureLogcat = true,

// Touch event debounce delay in milliseconds (Android only). Default is 1000.
debouncerDelayMs = 1000L,
// Minimum delay in milliseconds between replay snapshots (Android and iOS). Default is 1000.
throttleDelayMs = 1000L,

// Experimental: verify screenshot mask alignment before keeping a capture (Android only). Default is false.
verifyScreenshotMaskAlignment = false,
),
)
`,
Expand Down
14 changes: 8 additions & 6 deletions docs/onboarding/session-replay/react-native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ export const getReactNativeSteps = (ctx: OnboardingComponentsContext): StepDefin
language: 'bash',
file: 'Expo',
code: dedent`
npx expo install posthog-react-native@4 expo-file-system expo-application expo-device expo-localization @posthog/react-native-plugin@2
npx expo install posthog-react-native@4 expo-file-system expo-application expo-device expo-localization @posthog/react-native-plugin@3
`,
},
{
language: 'bash',
file: 'yarn',
code: dedent`
yarn add posthog-react-native@4 @react-native-async-storage/async-storage react-native-device-info react-native-localize @posthog/react-native-plugin@2
yarn add posthog-react-native@4 @react-native-async-storage/async-storage react-native-device-info react-native-localize @posthog/react-native-plugin@3

# for iOS
cd ios && pod install
Expand All @@ -38,7 +38,7 @@ export const getReactNativeSteps = (ctx: OnboardingComponentsContext): StepDefin
language: 'bash',
file: 'npm',
code: dedent`
npm i -s posthog-react-native@4 @react-native-async-storage/async-storage react-native-device-info react-native-localize @posthog/react-native-plugin@2
npm i -s posthog-react-native@4 @react-native-async-storage/async-storage react-native-device-info react-native-localize @posthog/react-native-plugin@3

# for iOS
cd ios && pod install
Expand All @@ -49,7 +49,7 @@ export const getReactNativeSteps = (ctx: OnboardingComponentsContext): StepDefin
<CalloutBox type="fyi" title="Plugin renamed in 4.47.0+">
<Markdown>
{dedent`
\`@posthog/react-native-plugin\` (\`>= 2.0.1\`) is the renamed \`posthog-react-native-session-replay\` plugin — it was renamed in \`posthog-react-native\` 4.47.0+ and now also powers [native error tracking](https://posthog.com/docs/error-tracking/installation/react-native). If you're on a \`posthog-react-native\` version earlier than 4.47.0, install \`posthog-react-native-session-replay\` instead.
\`@posthog/react-native-plugin\` (\`>= 2.0.1\`) is the renamed \`posthog-react-native-session-replay\` plugin. It was renamed in \`posthog-react-native\` 4.47.0+ and now also powers [native error tracking](https://posthog.com/docs/error-tracking/installation/react-native). If you're on a \`posthog-react-native\` version earlier than 4.47.0, install \`posthog-react-native-session-replay\` instead. Don't install it alongside \`@posthog/react-native-plugin\` 3.0: its pod still installs \`posthog-ios\` 3.x, and the Xcode build fails with \`Redefinition of module 'PostHog'\`.
`}
</Markdown>
</CalloutBox>
Expand Down Expand Up @@ -170,8 +170,10 @@ export const getReactNativeSteps = (ctx: OnboardingComponentsContext): StepDefin
</Markdown>
<CalloutBox type="fyi" title="Requirements">
<Markdown>
Requires Android API 26+ and iOS 13+. Expo Go is not supported - use a development build.
Session replay is only supported on Android and iOS platforms.
Requires React Native 0.75+, Android API 26+, iOS 15+, and Xcode 26+. On React Native 0.75
and 0.76, including Expo SDK 52, Android builds also need Kotlin 2.0 or later. Expo Go is
not supported - use a development build. Session replay is only supported on Android and iOS
platforms.
</Markdown>
</CalloutBox>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export * from './nodejs'
export * from './nuxt'
export * from './php'
export * from './python'
export * from './react-native'
export * from './remix'
export * from './ruby'
export * from './svelte'
Expand Down

This file was deleted.

Loading