react-native-unit-components
Version:
Unit React Native components
26 lines (25 loc) • 827 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _reactNative = require("react-native");
const {
UNSnapshotProtectionManager
} = _reactNative.NativeModules;
class UNSnapshotProtectionHelper {
static setAndroidSecurity() {
/**
* Set secure flag on the activity's window (if it doesn't exist)
*/
UNSnapshotProtectionManager.setSecureFlags();
}
static setIosSecurity(shouldProtectFromSnapshot, style) {
/**
* Activate a Global native service for managing the snapshotProtection by the given arguments.
*/
UNSnapshotProtectionManager.configureSnapshotProtectionStrategy(shouldProtectFromSnapshot, style);
}
}
var _default = exports.default = UNSnapshotProtectionHelper;
//# sourceMappingURL=UNSnapshotProtectionHelper.js.map
;