UNPKG

screenshot-control-by-akshay

Version:

12 lines (8 loc) 262 B
import { NativeModules } from 'react-native'; const { ScreenshotControl } = NativeModules; export const disableScreenshot = () => { ScreenshotControl.disableScreenshot(); }; export const enableScreenshot = () => { ScreenshotControl.enableScreenshot(); };