BlueWallet/Privacy.js
2019-02-28 23:24:17 +00:00

13 lines
422 B
JavaScript

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.disableBlur() : PrivacySnapshot.enabled(false);
}
}