# react-native-screenguard

> A React Native library for preventing your app from screenshots and screen recordings, with powerful event detection capabilities.

Latest version **2.0.2** (published 2026-04-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-screenguard
pnpm add react-native-screenguard
yarn add react-native-screenguard
bun add react-native-screenguard
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2026-04-19 |
| First published | 2023-06-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 16.0.0 |
| Dependencies | 0 |
| Unpacked size | 810 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 314 |
| Author | Thong Bui |
| Maintainers | thongbui |
| Keywords | screenguard, detector, screen-capture, capturing, protection, prevent, screenshot, secure, security, privacy, screen-capture, captured, screenshot-prevent, screenshot-blocker, screenshot-detector, screenshot-protection, screenshot-prevention, screenshot-blocking, screenshot-block, screenshot-blocker, screenshot-blocking-ios, screenshot-blocking-android, screenshot-block-ios, screenshot-block-android, screenshot-blocker-ios, screenshot-blocker-android, react, native, ios, android |

## Links

- npm: https://www.npmjs.com/package/react-native-screenguard
- Repository: https://github.com/gbumps/react-native-screenguard
- Homepage: https://gbumps.github.io/react-native-screenguard
- Issues: https://github.com/gbumps/react-native-screenguard/issues
- npm.io page: https://npm.io/package/react-native-screenguard

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.0.2 (latest) — 2026-04-19
- 1.0.8-beta (beta) — 2024-02-14
- 2.0.0-beta5 — 2026-03-29
- 2.0.1 — 2026-03-09
- 2.0.0-beta4 — 2026-02-18
- 2.0.0 — 2026-01-24
- 2.0.0-beta3 — 2026-01-23
- 2.0.0-beta2 — 2026-01-23
- 2.0.0-beta1 — 2026-01-23
- 2.0.0-beta0 — 2026-01-17
- 1.1.1 — 2025-12-20
- 1.1.0 — 2025-07-09
- 1.0.8-beta9 — 2025-07-08
- 1.0.9 — 2025-05-24
- 1.0.8-beta8 — 2025-05-23
- … 30 more at https://npm.io/package/react-native-screenguard/versions

## README

<p align="center">
  <h1>React Native Screenguard</h1>
  <p>A Native library for blocking screenshot for react-native developer, with background screenshot customizable.</p>
  <a href="https://github.com/prettier/prettier"><img src="https://img.shields.io/badge/styled_with-prettier-ff69b4.svg"></a>
  <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-blue.svg"></a>
  <a href="https://aleen42.github.io/badges/src/eslint.svg"><img src="https://aleen42.github.io/badges/src/eslint.svg"></a>
</p>

![ts](https://flat.badgen.net/badge/Built%20With/TypeScript/blue)

![main](https://github.com/user-attachments/assets/135826cd-9cc7-4d7d-a4c4-8237efe36816)

You can find full documentation and how to use [here](https://gbumps.github.io/react-native-screenguard)

Web docs repo (for contribution) [here](https://github.com/gbumps/rn-screenguard-docs)

<b>For Flutter dev</b>: If you want to implement some of features from this library, please check it out here [flutter_screenguard](https://pub.dev/packages/flutter_screenguard) for more infos.

# Get started

<!--ts-->
  * [Installation](#installation)
    * [1.Install](https://gbumps.github.io/react-native-screenguard/docs/getting-started/install)
    * [2.Linking](https://gbumps.github.io/react-native-screenguard/docs/getting-started/linking)
  * [Usage](#usage)
     * [initSettings](https://gbumps.github.io/react-native-screenguard/docs/usages-and-apis/init-settings)
     * [register](https://gbumps.github.io/react-native-screenguard/docs/usages-and-apis/register)
     * [registerWithoutEffect](https://gbumps.github.io/react-native-screenguard/docs/usages-and-apis/register-without-effect-android)
     * [registerScreenshotEventListener](https://gbumps.github.io/react-native-screenguard/docs/usages-and-apis/register-screenshot-event-listener)(removed in v2.0.0)
     * [registerScreenRecordingEventListener](https://gbumps.github.io/react-native-screenguard/docs/usages-and-apis/register-screen-recording-event-listener)(removed in v2.0.0)
     * [registerWithBlurView](https://gbumps.github.io/react-native-screenguard/docs/usages-and-apis/register-with-blurview)
     * [registerWithImage](https://gbumps.github.io/react-native-screenguard/docs/usages-and-apis/register-with-image)
     * [registerScreenguardPartially](https://gbumps.github.io/react-native-screenguard/docs/usages-and-apis/register-screenguard-partially)
     * [unregister](https://gbumps.github.io/react-native-screenguard/docs/usages-and-apis/unregister)
     * [getScreenGuardLogs](https://gbumps.github.io/react-native-screenguard/docs/usages-and-apis/get-screen-guard-logs)
  * [Hooks](#hooks)
    * [useSGScreenShot](https://gbumps.github.io/react-native-screenguard/docs/usages-and-apis/use-sg-screenshot)
    * [useSGScreenRecord](https://gbumps.github.io/react-native-screenguard/docs/usages-and-apis/use-sg-screen-record)
  * [Limitation](https://gbumps.github.io/react-native-screenguard/docs/limitation/)
  * [Contributing](#contributing)
  * [License](#license)
<!--te-->



Made with [react-native-builder-bob](https://github.com/callstack/react-native-builder-bob)

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