# @exodus/react-native-screenshot-detector

> detect when the user takes a screenshot

Latest version **1.2.8** (published 2026-08-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @exodus/react-native-screenshot-detector
pnpm add @exodus/react-native-screenshot-detector
yarn add @exodus/react-native-screenshot-detector
bun add @exodus/react-native-screenshot-detector
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.2.8 |
| Published | 2026-08-04 |
| First published | 2019-07-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 25.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | gcarling |
| Maintainers | juraex, kevva, doguhan, janwe, jprichardson, farisissa, headfire, gutenye, mosesbot, dcastagnoli, sonaye, tenaciousmv, asyakost, bulgakovk, chalker, andrejb, jaydp17, olistic, joepie91, merlz, vbonini, devopsrobot, jenish-sojitra, cryptosgr, diegomura, lanre-mark, federico-po, akinncar, fboucquez, lanahizzle, kwwood, joshuabot, meniem, alexandrbbm, angelloz, nacho-exodus, alex.alexandrius, rec, jamiemaw, james-gre, shehryar6, clarkexo, tunguyennnnn, mikita-hr, jschopen, marcos.kichel, andrewtoth-exodus, kryptkeep, 633kh4ck, mbaraniak-exodus, awesomeniko, r4vn, muratso, clintyn, phil-exodus, exo-jason, exodus-neo, guillermo_hh, rg911, jdmdreamer, thom-exodus, arlen-exodus, yalomist, joshua-rogers-exodus, sripwoud, xogdg, chrisrichexo, josuexo, yevhenii-mo-exodus, bewarden, 1emu, andyesp, dj_exodus |
| Keywords | react-native |

## Links

- npm: https://www.npmjs.com/package/@exodus/react-native-screenshot-detector
- Repository: https://github.com/ExodusForks/react-native-screenshot-detector
- Homepage: https://github.com/ExodusForks/react-native-screenshot-detector#readme
- Issues: https://github.com/ExodusForks/react-native-screenshot-detector/issues
- npm.io page: https://npm.io/package/@exodus/react-native-screenshot-detector

## Recent versions

- 1.2.8 (latest) — 2026-08-04
- 1.2.7 — 2026-05-06
- 1.2.6 — 2026-05-01
- 1.2.5-exodus.0 — 2026-04-27
- 1.2.5 — 2025-07-15
- 1.2.4 — 2025-07-12
- 1.2.3 — 2025-07-11
- 1.2.2 — 2025-06-27
- 1.2.1 — 2025-06-27
- 1.2.0 — 2025-06-18
- 1.1.2 — 2023-01-05
- 1.1.1 — 2021-04-14
- 1.1.0 — 2021-04-13
- 1.0.1 — 2019-07-11
- 1.0.0 — 2019-07-04

## README

# @exodus/react-native-screenshot-detector

*NOTE: forked and adapted from https://github.com/blend/react-native-screenshot-detector*

The goal is to prevent the user from taking screenshots in your app.

- Android: possible via the [FLAG_SECURE flag](https://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SECURE)
- iOS: impossible, but you *can* detect them

Accordingly, this library exports different APIs for Android and iOS. See [Usage](#usage) below.

## Getting started

`$ npm install @exodus/react-native-screenshot-detector --save`

`$ react-native link @exodus/react-native-screenshot-detector`

## Usage

```javascript
import ScreenshotDetector from '@exodus/react-native-screenshot-detector';

// iOS
ScreenshotDetector.subscribe(() => {
  // yell at the user. We'll leave the choice of obscenities to you
})

// Android
ScreenshotDetector.disableScreenshots()
ScreenshotDetector.enableScreenshots()
```

---
_Source: https://npm.io/package/@exodus/react-native-screenshot-detector · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
