BlueWallet/Privacy.js
Marcos Rodriguez Vélez 6017f4d990 FIX: Create button was difficult to press on android. (#369)
FIX: Create button was difficult to press on android.
ADD: Clipboard detection on app state change to foreground
OPS: Upgrade to RN 58.6 due to various important fixes
FIX: Statusbar restored
2019-03-02 12:13:12 +00:00

14 lines
428 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.deactivateObscure() : PrivacySnapshot.enabled(false);
}
}