@react-native-oh-tpl/react-native-screenshot-prevent
Version:
This fork contains fully working blank screenshot on IOS13+ including screen recording
13 lines (12 loc) • 468 B
text/typescript
import type { TurboModule } from 'react-native/Libraries/TurboModule/RCTExport';
import { TurboModuleRegistry} from 'react-native';
type FN = (resp: any) => void
type Return = {
readonly remove: () => void
}
export interface Spec extends TurboModule {
enabled_bn(enabled: boolean):void;
addListener_bn():void;
removeListener_bn():void;
}
export default TurboModuleRegistry.get<Spec>('NativeScreenShotPreventNativeModule') as Spec | null;