MCPcopy Create free account
hub / github.com/bufgix/react-native-secure-window / SecureWindow

Function SecureWindow

src/ReactNativeSecureWindowView.tsx:17–29  ·  view source on GitHub ↗
(props: SecureWindowProps)

Source from the content-addressed store, hash-verified

15 : requireNativeViewManager("ReactNativeSecureWindow");
16
17export default function SecureWindow(props: SecureWindowProps) {
18 useEffect(() => {
19 if (Platform.OS === "android") {
20 ExpoScreenCapture.preventScreenCaptureAsync();
21 }
22 return () => {
23 if (Platform.OS === "android") {
24 ExpoScreenCapture.allowScreenCaptureAsync();
25 }
26 };
27 }, []);
28 return <SecureWindowNativeView {...props} />;
29}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected