mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-13 19:16:52 +01:00
23 lines
754 B
TypeScript
23 lines
754 B
TypeScript
// import { enableSecureView, disableSecureView, forbidAndroidShare, allowAndroidShare } from 'react-native-prevent-screenshot-ios-android';
|
|
// import { Platform } from 'react-native';
|
|
// import { isDesktop } from '../blue_modules/environment';
|
|
|
|
export const enableScreenProtect = () => {
|
|
// if (isDesktop) return;
|
|
// if (Platform.OS === 'ios') {
|
|
// enableSecureView();
|
|
// } else if (Platform.OS === 'android') {
|
|
// forbidAndroidShare();
|
|
// }
|
|
};
|
|
|
|
export const disableScreenProtect = () => {
|
|
// if (isDesktop) return;
|
|
// if (Platform.OS === 'ios') {
|
|
// disableSecureView();
|
|
// } else if (Platform.OS === 'android') {
|
|
// allowAndroidShare();
|
|
// }
|
|
};
|
|
|
|
// CURRENTLY UNUSED AS WE WAIT FOR NAV 7 SUPPORT
|