mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-23 07:15:35 +01:00
13 lines
422 B
JavaScript
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);
|
|
}
|
|
}
|