---
title: Native code coverage for React Native
description: >-
  iOS, Android, and TypeScript code coverage from end-to-end tests in a
  dedicated React Native test app, with a CI gate for empty coverage.
---
> ## Documentation Index
> Fetch the complete documentation index at: https://docs.page/invertase/react-native-coverage/llms.txt
> Use this file to discover all available pages before exploring further.

<Warning>
  Install it in a [dedicated test app](/coverage#dedicated-test-app), never the app you ship. The flusher is a TurboModule, so the test app must run React Native's New Architecture.
</Warning>

## Install

Give your coding agent this prompt:

```txt
Read https://docs.page/invertase/react-native-coverage/app-developers.md, and set up react-native-coverage in this project.
```

Or pick a relevant install guide:

<CardGroup cols={3}>
  <Card title="App developers" icon="mobile-screen" href="/app-developers">
    From install through `rn-coverage assert` exiting `0` on iOS and Android.
  </Card>
  <Card title="Library maintainers" icon="cubes" href="/library-maintainers">
    Keep unit tests, add the test-app layer, and require hits in your own package.
  </Card>
  <Card title="Coding agents" icon="robot" href="/agents">
    Prompt, hard rules, and the assert exit-code contract.
  </Card>
</CardGroup>

## Explore

<CardGroup cols={2}>
  <Card title="Coverage" icon="lightbulb" href="/coverage">
    What this package measures, how the pipeline works, and what you need to run it.
  </Card>
  <Card title="Integrations" icon="plug" href="/integration/android">
    Android, [iOS](/integration/ios), [JavaScript and TypeScript](/integration/js), [CI with Appium](/integration/ci-appium), and [Codecov](/integration/codecov).
  </Card>
  <Card title="Reference" icon="book" href="/reference">
    Every `rn-coverage` command, flag, and exit code, and every key in the `react-native-coverage.config.js` file.
  </Card>
  <Card title="Troubleshooting" icon="triangle-exclamation" href="/troubleshooting/empty-coverage">
    Resolve empty reports and `rn-coverage assert` failures.
  </Card>
</CardGroup>

## Help

<CardGroup cols={2}>
  <Card title="Discord" icon="discord" href="https://invertase.link/discord">
    Ask about setup or unclear docs.
  </Card>
  <Card title="GitHub Issues" icon="github" href="https://github.com/invertase/react-native-coverage/issues/new/choose">
    Report a bug or empty report that looks wrong.
  </Card>
</CardGroup>
