Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-native-secure-window

Ashwin-Mothilal2.3kMIT0.4.0TypeScript support: included

Enabling or disabling secure window on Android

react-native, ios, android, screenshot, prevent-screenshot, screen capture, prevent, window

readme

react-native-secure-window

Android

Enabling or disabling secure window on Android If you aren't aware what this package is about check this link

iOS

The latest version adds support for iOS. \ iOS does not have a secure window feature like Android, but here we chose to add a blurred view. \ We hook into the event UIApplicationWillResignActiveNotification to enabled the blurred view and hook into the event UIApplicationDidBecomeActiveNotification to disable it again.

Installation

npm install react-native-secure-window --save
yarn add react-native-secure-window

Usage

import SecureWindow from "react-native-secure-window";

//Can be used imperatively
SecureWindow.changeSecureWindow(true);

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT