1
0
Fork 0
mirror of https://github.com/BlueWallet/BlueWallet.git synced 2025-03-16 20:21:35 +01:00
BlueWallet/Privacy.js

14 lines
428 B
JavaScript
Raw Normal View History

import Obscure from 'react-native-obscure';
import { Platform } from 'react-native';
const PrivacySnapshot = require('react-native-privacy-snapshot');
export default class Privacy {
static enableBlur() {
Platform.OS === 'android' ? Obscure.activateObscure() : PrivacySnapshot.enabled(true);
}
static disableBlur() {
Platform.OS === 'android' ? Obscure.deactivateObscure() : PrivacySnapshot.enabled(false);
}
}