error-tracking-react-native

PostHog error tracking for React Native: investigate and implement PostHog error/exception tracking solutions for React Native applications.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "error-tracking-react-native" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-408c2dfdae4b853db0ac82138ecf38a138ce43b88f6d77dfeb4fafda2eaa10de. Verify the upstream source and version against https://skills.sh/posthog/skills/error-tracking-react-native before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skills.sh

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

PostHog error tracking for React Native: investigate and implement PostHog error/exception tracking solutions for React Native applications.

0 Downloads

Introduction source: third_party · posthog · 1.0.0 Reference

SkillPi interpretation

Tasks
PostHog error tracking for React Native
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: error-tracking-react-native
description: PostHog error tracking for React Native
metadata:
  author: PostHog
  version: 1.9.4

PostHog error tracking for React Native

This skill helps you add PostHog error tracking to React Native applications.

Reference files

  • references/react-native.md - React native error tracking installation - docs
  • references/fingerprints.md - Fingerprints - docs
  • references/alerts.md - Send error tracking alerts - docs
  • references/monitoring.md - Monitor and search issues - docs
  • references/assigning-issues.md - Assign issues to teammates - docs
  • references/upload-source-maps.md - Upload source maps - docs

Consult the documentation for API details and framework-specific patterns.

Key principles

  • Environment variables: Always use environment variables for PostHog keys and host URLs. Never hardcode them.
  • Minimal changes: Add error tracking alongside existing error handling. Don't replace or restructure existing error handling code.
  • Autocapture first: Enable exception autocapture in the SDK initialization before adding manual captures.
  • Source maps: Upload source maps so stack traces resolve to original source code, not minified bundles.
  • Manual capture for boundaries: Use captureException() at error boundaries and catch blocks for errors that don't propagate to the global handler.

Framework guidelines

  • posthog-react-native is the React Native SDK package name
  • Use react-native-config to load POSTHOG_PROJECT_TOKEN and POSTHOG_HOST from .env (variables are embedded at build time, not runtime)
  • react-native-svg is a required peer dependency of posthog-react-native (used by the surveys feature) and must be installed alongside it
  • Place PostHogProvider INSIDE NavigationContainer for React Navigation v7 compatibility

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 提供 React Native 应用集成 PostHog 错误追踪的完整解决方案
  • 包含关键原则和框架指南,具有实际开发指导价值
Trigger Precision85/100

Highlights

  • 触发词精准明确,覆盖 React Native 错误追踪场景
  • description 位置正确,内容完整
Structure and Standards65/100

Areas to improve

  • 缺少端到端示例 Reported severity: Minor

    引用了多个参考文件但缺少完整的集成示例

    Recommendation: 添加一个完整的 React Native 项目集成 PostHog 错误追踪的端到端示例

  • 缺少明确的步骤划分 Reported severity: Minor

    内容以原则和指南形式呈现,缺少清晰的 Phase/步骤划分

    Recommendation: 将集成过程划分为清晰的步骤(如:1.安装依赖 2.配置环境变量 3.初始化SDK等)

Highlights

  • 关键原则清晰,包含环境变量、最小化变更等重要实践
  • 框架指南具体,提到了 react-native-config 和 react-native-svg 等关键依赖
Execution Reliability75/100

Areas to improve

  • 缺少常见失败场景处理 Reported severity: Minor

    未覆盖常见集成失败场景的排查和处理建议

    Recommendation: 添加常见错误排查指南,如 SDK 初始化失败、网络连接问题等

Highlights

  • 工具来源明确,参数说明清晰
  • 覆盖了 SDK 初始化、错误边界、source maps 等关键集成要点
Evidence Verifiability (mean of the first four)76/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.