Packages

@posthog/react-native-plugin

2.13.3 · 19 Nov 2026MIT745.4k / weekRepositoryHomepagenpmAtom feed

Your version

44 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 2.x · latest line
  2. 2.13.3

    19 Nov 2026
    • Breaking

      Require posthog-ios 3.98.1 to reduce main-thread hangs in iOS session replay during fast scrolls and animations
      (2026-11-19)

  3. 2.13.2

    18 Nov 2026
    • Breaking

      Require posthog-ios 3.98.0 to pick up the iOS session replay fixes since 3.92.7: skip a screenshot when drawHierarchy fails instead of uploading a blank frame, keep masks aligned with screenshotModeBackgroundCapture during scroll and animation, schedule capture without swizzling UIView layout, and fix replay crashes with custom CALayer subclasses and the iPad print panel.
      (2026-11-18)

  4. 2.13.1

    10 Nov 2026
    • Fix Android fatal JavaScript crash timestamps being shifted when the device clock differs from network time
      (2026-11-10)

  5. 2.13.0

    30 Oct 2026
    • Breaking

      Require posthog-android 3.74.2. Android apps that do not set screenshotScale now capture session replay screenshots at one pixel per dp, so uploads are smaller. Set screenshotScale: 1 to keep native resolution. Session replay also records FLAG_SECURE windows fully masked and drops frames where an animating view would expose masked content.
      (2026-10-30)

  6. 2.12.8

    29 Oct 2026
    • Breaking

      Require posthog-ios 3.92.7 so session replay screenshots without masks upload at the same size as masked ones. Before, they were encoded at native scale, which could leave replay minutes behind.
      (2026-10-29)

  7. 2.12.7

    27 Oct 2026
    • Upgrade the Android SDK to 3.72.9, which pulls in OkHttp 4.12.1 to block the compromised eMudhra intermediate certificates.
      (2026-10-27)

  8. 2.12.6

    14 Oct 2026
    • Report fatal JS crashes the JS error handler did not capture, such as React render errors on iOS, through native crash capture instead of dropping them (requires updating both posthog-react-native and @posthog/react-native-plugin). Apps with errorTracking.autocapture.nativeCrashes on and uncaughtExceptions off now get every fatal JS crash reported this way.
      (2026-10-14)

  9. 2.12.5

    5 Oct 2026
    • Breaking

      Require posthog-android 3.71.6, which keeps replay uploads separate when the session or distinct ID changes and fixes corrupt gzip request bodies on Android.
      (2026-10-05)

  10. 2.12.4

    2 Oct 2026
    • Breaking

      Require posthog-ios 3.88.2 to fix replay attribution across session and identity changes and a camera-picker replay crash.
      (2026-10-02)

  11. 2.12.3

    30 Sep 2026
    • Breaking

      Require posthog-ios 3.86.1 and posthog-android 3.71.4, which stop session replay when the project is over its mobile session replay quota
      (2026-09-30)

  12. 2.12.2

    29 Sep 2026
    • Breaking

      Require posthog-android 3.71.2, which stops event properties from overriding $process_person_profile and $is_identified on native events
      (2026-09-29)

  13. 2.12.1

    28 Sep 2026
    • Keep the JS layer's $process_person_profile and $is_identified on fatal JS crashes captured through the Android native SDK, so they stay correct once posthog-android stops letting event properties override them
      (2026-09-28)

  14. 2.12.0

    25 Sep 2026
    • Add getSessionReplayDebugProperties() to read the native SDK's session replay debug map
      (2026-09-25)

    • Add errorTracking.autocapture.androidNdkCrashes to capture native C/C++ (NDK) crashes on Android 12+ (requires @posthog/react-native-plugin 2.12.0). Update posthog-android to 3.71.1 so these crashes are stamped at the right time when the device clock disagrees with network time.
      (2026-09-25)

  15. 2.11.0

    25 Sep 2026
    • Attach the native session replay debug properties to native crash $exception events; requires posthog-ios 3.83.0 and posthog-android 3.70.0.
      (2026-09-25)

  16. 2.10.0

    23 Sep 2026
    • Capture fatal React Native JavaScript exceptions through the embedded native SDK, which persists them to its own disk queue synchronously, so a crash is not lost when the process terminates before AsyncStorage finishes writing. The JS queue copy is dropped when native takes the event, so each crash is still sent once.

      Enabling errorTracking.autocapture.uncaughtExceptions now initializes the native PostHog SDK on its own, since that queue is what makes the fatal path durable. Apps that previously enabled neither session replay, native crash autocapture nor push will see one additional /config request per launch as a result: the native SDKs fetch remote config at setup regardless of preloadFeatureFlags. (2026-09-23)

  17. 2.9.4

    16 Sep 2026
    • Stop the native SDKs keeping their own opt-out state, so the consent the JS client resolves is the one they use at setup. Requires posthog-android 3.66.0 and posthog-ios 3.76.0.
      (2026-09-16)

  18. 2.9.3

    15 Sep 2026
    • Android: A notification tap that launched the app is no longer captured as $push_notification_opened while the JS client is opted out, even if an earlier launch had opted the native SDK in.
      (2026-09-15)

  19. 2.9.2

    15 Sep 2026
    • iOS: A notification tap that launched the app is no longer captured as $push_notification_opened while the JS client is opted out, even if an earlier launch had opted the native SDK in.
      (2026-09-15)

    • Capture $push_notification_opened on iOS when a notification tap cold-launches the app, or set com.posthog.posthog.CAPTURE_PUSH_NOTIFICATION_OPENED to false in Info.plist to opt out before any PostHog code runs, as in posthog-flutter.
      (2026-09-15)

  20. 2.9.1

    15 Sep 2026
    • Count a PostHog notification tap once when both capturePushNotificationOpened and automatic capture report it, using the dedupe added in posthog-android 3.65.0 and posthog-ios 3.75.0. Update the native SDKs to posthog-android 3.65.2 and posthog-ios 3.75.2.
      (2026-09-15)

  21. 2.9.0

    14 Sep 2026
    • Add initialization-only sessionReplayConfig.captureTouches to disable replay touch coordinates without stopping screenshots on Android and iOS.
      (2026-09-14)

  22. 2.8.1

    12 Sep 2026
    • Breaking

      Require posthog-ios 3.73.3 so React Native apps get the session replay masking fixes shipped in posthog-ios 3.73.2 and 3.73.3.
      (2026-09-12)

  23. 2.8.0

    11 Sep 2026
    • Add experimental Android-only screenshotScale, screenshotCompressionQuality, and screenshotColorMode options to sessionReplayConfig, and bump com.posthog:posthog-android to 3.63.1.
      (2026-09-11)

  24. 2.7.0

    11 Sep 2026
    • Expose rageClickConfig for tuning or disabling native iOS rage click detection from React Native.
      (2026-09-11)

  25. 2.6.0

    10 Sep 2026
    • Capture $push_notification_opened on Android when a notification is tapped while the app is already running, not just on a cold start.
      (2026-09-10)

  26. 2.5.2

    7 Sep 2026
    • Skip the explicit Kotlin plugin when AGP provides built-in Kotlin

      Android Gradle Plugin 9 registers the kotlin extension itself, so applying
      kotlin-android on top of it fails configuration with "Cannot add extension with
      name 'kotlin'". The plugin is now applied only when nothing has registered that
      extension yet, which keeps AGP 8 working unchanged and covers AGP 10, where the
      android.builtInKotlin opt-out is removed. (2026-09-07)

  27. 2.5.1

    28 Aug 2026
    • Update the native SDKs to posthog-ios 3.70.1 and posthog-android 3.61.0, fixing session replay masks drifting off their content during scroll, a crash when replay console-log capture tears down on iOS, and web-scoped surveys showing on native Android.
      (2026-08-28)

  28. 2.5.0

    24 Aug 2026
    • Add sessionReplayConfig.verifyScreenshotMaskAlignment for Android session replay. This option requires @posthog/react-native-plugin.
      (2026-08-24)

  29. 2.4.3

    24 Aug 2026
    • Fix session replay started with startRecording() capturing nothing on Android by bumping com.posthog:posthog-android to 3.60.7.
      (2026-08-24)

  30. 2.4.2

    24 Aug 2026
    • Breaking

      Require posthog-ios 3.69.10 so native dSYMs are uploaded after they are ready.
      (2026-08-24)

  31. 2.4.1

    21 Aug 2026
    • Export the package metadata so consumers can resolve the installed plugin version. (2026-08-21)

  32. 2.4.0

    13 Aug 2026
    • Add native Swift Package Manager support for React Native 0.87's experimental CocoaPods-free iOS integration.
      (2026-08-13)

  33. 2.3.1

    7 Aug 2026
    • Fix Android compilation with React Native 0.86.
      (2026-08-07)

  34. 2.3.0

    5 Aug 2026
    • Add the native push notification bridge, so posthog-react-native can register device tokens and capture notification opens through the native PostHog SDKs.

  35. 2.2.4

    3 Aug 2026
    • Breaking

      Raise the minimum posthog-ios dependency to 3.69.0 to include the rage-click sheet dismissal fix.
      (2026-08-03)

  36. 2.2.3

    15 Jul 2026
  37. 2.2.2

    14 Jul 2026
    • Breaking

      Require posthog-ios 3.64.7 or later, so release builds can skip conflicting dSYM uploads (the Expo plugin's skipOnConflict option) instead of failing when a dSYM with the same UUID but different content already exists in PostHog.
      (2026-07-14)

  38. 2.2.1

    10 Jul 2026
    • Fix fatal JS errors being double-reported on Android in minified release builds: the plugin's dedup matched serialized class-name strings, which R8/ProGuard renaming can defeat. It now registers JavascriptException in posthog-android's errorTrackingConfig.ignoredExceptionTypes (requires core 6.24.0), which matches by class across the cause chain and is unaffected by minification.
      (2026-07-10)

  39. 2.2.0

    10 Jul 2026
    • Add macOS support so the plugin builds on react-native-macos targets. The podspec now declares an osx platform, and all iOS-only posthog-ios APIs (session replay config, surveys, session-recording controls) are guarded with #if os(iOS). Session replay remains iOS-only; macOS gets native error tracking.
      (2026-07-10)

  40. 2.1.2

    1 Jul 2026
    • Add a requestHeaders option to send custom headers (e.g. Authorization) with SDK requests, including session replay and native error/crash uploads via the native plugin. Useful for reverse-proxy setups that require authentication.
      (2026-07-01)

  41. 2.1.1

    23 Jun 2026
    • Raise the native SDK floor to the releases that skip session-replay event-trigger gating for React Native: posthog-ios ~> 3.61.1 and com.posthog:posthog-android:3.51.1. Required for React Native event-triggered session replay to record.
      (2026-06-23)

  42. 2.1.0

    19 Jun 2026
    • Add addExceptionStep(message, properties?) for breadcrumb-style exception steps. Steps accumulate in a rolling, byte-bounded buffer (configurable via errorTracking.exceptionSteps) and are attached to every captured $exception as $exception_steps, giving the error tracking UI a timeline of recent activity before each error. When native crash capture is enabled, steps are forwarded to the embedded native SDK so native crashes carry the same timeline.
      (2026-06-19)

  43. 2.0.1

    12 Jun 2026
    • Drop native captures of fatal React Native JS errors that the JS layer already reports, so a fatal JS error no longer produces two $exception events. Works on Android (both architectures) and iOS (old architecture only). On the iOS new architecture, fatal JS exception events surface as a generic SIGABRT crash event with no JS-error text in any field, so they currently cannot be filtered
      (2026-06-12)

    • Apply the session replay configuration at native SDK setup even when replay starts disabled, so recording turned on later (e.g. startRecording or a linked feature flag) uses screenshot mode, the configured masking, and the configured snapshot endpoint instead of wireframe/default settings
      (2026-06-12)

  44. 2.0.0

    10 Jun 2026
    • Breaking

      First release under the new name @posthog/react-native-plugin, picking up from posthog-react-native-session-replay@1.6.0. Alongside the existing session replay support, the plugin now enables native error tracking — iOS and Android crash autocapture via the underlying PostHog mobile SDKs. It will be consumed by future versions of posthog-react-native.
      (2026-06-10)

  45. 0.0.x
  46. 0.0.1

    9 Jun 2026

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.