mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-20 02:09:10 +01:00
13 lines
386 B
JavaScript
13 lines
386 B
JavaScript
import Obscure from 'react-native-obscure';
|
|
import { Platform } from 'react-native';
|
|
import { enabled } from 'react-native-privacy-snapshot';
|
|
export default class Privacy {
|
|
static enableBlur() {
|
|
Platform.OS === 'android' ? Obscure.activateObscure() : enabled(true);
|
|
}
|
|
|
|
static disableBlur() {
|
|
Platform.OS === 'android' ? Obscure.deactivateObscure() : enabled(false);
|
|
}
|
|
}
|