releases.shpreview

macOS support added; iOS-only APIs guarded

@posthog/react-native-plugin@2.2.0

July 10, 2026PostHog JSView original ↗
1 feature1 enhancementThis release1 featureNew capabilities1 enhancementImprovements to existing featuresAI-tallied from the release notes

2.2.0

Minor Changes

  • #4110 da33d9e Thanks @ioannisj! - 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)

Fetched July 10, 2026