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-kitWhy 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
| Aspect | Writing platform code per screen | react-native-privacy-guard-kit |
|---|---|---|
| Screenshots and recording | Android FLAG_SECURE in native code, and a separate workaround on iOS | One API for both platforms |
| App-switcher preview | Native lifecycle handling on each platform | Built in |
| Clipboard | Easy to forget until a security review finds it | Built-in guard |
| Dependencies | Whatever you add along the way | None 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.