src/types.ts

posthog-js · packages/react-native/src/types.ts · typescript · Apache-2.0
integration

TypeScript types for PostHog React Native autocapture, navigation tracking, and rage click detection

// Source: https://github.com/PostHog/posthog-js | License: Apache-2.0 | Copyright 2020 Posthog / Hiberly, Inc
// Provided via justclaw.it.com; keep this notice with the code.
export type PostHogAutocaptureNavigationTrackerOptions = {
  routeToName?: (name: string, params: any) => string
  routeToProperties?: (name: string, params: any) => Record<string, any>
}

/**
 * @deprecated
 */
export type PostHogNavigationRef = {
  getCurrentRoute(): any | undefined
  isReady: () => boolean
  current?: PostHogNavigationRef | any | undefined
}

export type PostHogRageClickConfig = {
  /**
   * Enable or disable rage click (rage tap) detection.
   *
   * When enabled the native SDK emits a `$rageclick` event whenever a user
   * taps the same area repeatedly in quick succession.
   *
   * @default tr

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key