Skip to content

Mobile Security · npm package

react-native-privacy-guard-kit

A zero-dependency React Native library that protects sensitive screens from screenshots, screen recordings, app-switcher previews and clipboard leaks.

Overview

Sensitive content leaks in quiet ways: a screenshot, a screen recording, the thumbnail in the app switcher, or a copied value left on the clipboard. Privacy Guard Kit closes those gaps with a hook, a provider and a strictly typed TypeScript API, and no third-party dependencies.

Highlights

  • Blocks screenshots and screen recording on protected screens
  • Hides content in the app-switcher preview
  • Guards against clipboard leaks
  • Hook and provider API with strict TypeScript types
  • Zero runtime dependencies

Install

npm install react-native-privacy-guard-kit

Why teams use it

  • Closes the quiet leaks

    Screenshots, screen recordings, app-switcher thumbnails and the clipboard are covered together, not one at a time.

  • Drop-in API

    A hook and a provider protect a screen in a few lines, with strict TypeScript types.

  • No dependency risk

    Zero runtime dependencies means nothing extra to audit and a smaller supply-chain surface.

How it compares

vsWriting platform code per screen

react-native-privacy-guard-kit compared with Writing platform code per screen
AspectWriting platform code per screenreact-native-privacy-guard-kit
Screenshots and recordingAndroid FLAG_SECURE in native code, and a separate workaround on iOSOne API for both platforms
App-switcher previewNative lifecycle handling on each platformBuilt in
ClipboardEasy to forget until a security review finds itBuilt-in guard
DependenciesWhatever you add along the wayNone at runtime

Let's talk

Need something like this in your app?

Tell us what you are building. You will get a reply within two business days.