(props: SecureWindowProps)
| 15 | : requireNativeViewManager("ReactNativeSecureWindow"); |
| 16 | |
| 17 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected