// troubleshooting guide · posthog

PostHog React Native Screen Views Not Tracked

Status
Workaround available
platforms:
iOS, Android (React Native, Expo)
updated:
November 23, 2026
reports:
2
Method
how we research
Share

RUNBOOK · posthog/react-native-screens-not-tracked4 FIXES

// quick answer

Automatic $screen events only work with React Navigation v6 or lower and react-native-navigation. With React Navigation v7 or expo-router you must turn off captureScreens and call posthog.screen() yourself.

Most likely fix: React Navigation v6 or lower: fix provider placement

How to fix it

// try these in order, the most common fix is first

  1. FIX 1React Navigation v6 or lower: fix provider placement

    1. 01Place PostHogProvider as a child of NavigationContainer
    2. 02Pass the autocapture prop to PostHogProvider
    Did this fix it?
  2. FIX 2React Navigation v7: capture screens manually

    1. 01Set autocapture={{ captureScreens: false }} on PostHogProvider
    2. 02Set up React Navigation's official screen tracking and call posthog.screen(currentRouteName, params) in trackScreenView
    Did this fix it?
  3. FIX 3expo-router: call posthog.screen in a useEffect

    1. 01Follow Expo's screen tracking guide to read the current pathname
    2. 02Call posthog.screen(pathname, params) inside the useEffect that runs on route changes
    Did this fix it?
  4. FIX 4Check install and touch capture

    1. 01Expo: install expo-file-system, expo-application, expo-device and expo-localization; bare React Native: @react-native-async-storage/async-storage, react-native-device-info and react-native-localize
    2. 02Set captureTouches: true in autocapture if you expect $autocapture touch events
    3. 03Turn on debug mode and watch the device logs while navigating
    Did this fix it?

SANDBOX · posthog RUNS IN YOUR BROWSER

Try it: chart events, find the funnel drop-off, watch the session, roll out a flag

A hands-on PostHog-style sandbox, including the spots where users get stuck. See where problems like this one start. 1-2 minutes, nothing is saved.

Symptoms

No $screen events or screen names in PostHog, autocapture errors after upgrading to React Navigation v7, or touch events missing even though app lifecycle events arrive.

Why it happens

  • C-01React Navigation v7 restricts navigation hooks, so automatic screen capture fails when PostHog is set up outside a screen
  • C-02expo-router has no automatic screen tracking
  • C-03PostHogProvider placed outside NavigationContainer on React Navigation v6
  • C-04Touch capture is off by default (captureTouches: false)
  • C-05Missing peer dependencies for the storage layer

// this guide also covers

  • posthog react native screen not tracked
  • posthog expo router screen
  • posthog react navigation 7
  • posthog react native events not showing
  • posthog react native autocapture not working

Still not working?

If PostHog keeps failing, you're not alone. See every PostHog problem users report or the alternatives people switch to.

Done fighting PostHog? Our small team builds your own PostHog alternative, or any software you need: web, mobile, games, desktop. Price agreed together.

Talk to us

Watch PostHog Get an email when its price changes, it has an outage, or we publish a new fix. No spam.

Fixed it? Share this guide

Other PostHog errors

All 18 PostHog errors and fixes →